le_update_interface.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
178 #ifndef LE_UPDATE_INTERFACE_H_INCLUDE_GUARD
179 #define LE_UPDATE_INTERFACE_H_INCLUDE_GUARD
180 
181 
182 #include "legato.h"
183 
184 // Interface specific includes
185 #include "le_limit_interface.h"
186 
187 
188 //--------------------------------------------------------------------------------------------------
199 //--------------------------------------------------------------------------------------------------
201 (
202  void
203 );
204 
205 //--------------------------------------------------------------------------------------------------
216 //--------------------------------------------------------------------------------------------------
218 (
219  void
220 );
221 
222 
223 //--------------------------------------------------------------------------------------------------
237 //--------------------------------------------------------------------------------------------------
238 typedef enum
239 {
242 
245 
248 
251 }
253 
254 
255 //--------------------------------------------------------------------------------------------------
262 //--------------------------------------------------------------------------------------------------
263 typedef enum
264 {
267 
270 
273 
276 }
278 
279 
280 //--------------------------------------------------------------------------------------------------
284 //--------------------------------------------------------------------------------------------------
285 typedef struct le_update_ProgressHandler* le_update_ProgressHandlerRef_t;
286 
287 
288 //--------------------------------------------------------------------------------------------------
300 //--------------------------------------------------------------------------------------------------
301 typedef void (*le_update_ProgressHandlerFunc_t)
302 (
303  le_update_State_t updateState,
304  uint percentDone,
305  void* contextPtr
306 );
307 
308 //--------------------------------------------------------------------------------------------------
314 //--------------------------------------------------------------------------------------------------
316 (
319 
320  void* contextPtr
322 );
323 
324 //--------------------------------------------------------------------------------------------------
328 //--------------------------------------------------------------------------------------------------
330 (
331  le_update_ProgressHandlerRef_t addHandlerRef
333 );
334 
335 //--------------------------------------------------------------------------------------------------
346 //--------------------------------------------------------------------------------------------------
348 (
349  int fd
352 );
353 
354 //--------------------------------------------------------------------------------------------------
358 //--------------------------------------------------------------------------------------------------
359 void le_update_End
360 (
361  void
362 );
363 
364 //--------------------------------------------------------------------------------------------------
372 //--------------------------------------------------------------------------------------------------
374 (
375  void
376 );
377 
378 //--------------------------------------------------------------------------------------------------
384 //--------------------------------------------------------------------------------------------------
386 (
387  void
388 );
389 
390 //--------------------------------------------------------------------------------------------------
400 //--------------------------------------------------------------------------------------------------
402 (
403  int32_t systemIndex,
406 
407  char* hashStr,
410 
411  size_t hashStrNumElements
413 );
414 
415 //--------------------------------------------------------------------------------------------------
422 //--------------------------------------------------------------------------------------------------
424 (
425  int32_t systemIndex
428 );
429 
430 
431 #endif // LE_UPDATE_INTERFACE_H_INCLUDE_GUARD
432 
void le_update_End(void)
le_result_t le_update_GetSystemHash(int32_t systemIndex, char *hashStr, size_t hashStrNumElements)
Update failed due to some error or deletion request.
Definition: le_update_interface.h:249
le_result_t
Definition: le_basics.h:35
le_update_ErrorCode_t
Definition: le_update_interface.h:263
Applying update(i.e. installation/removal operation going on).
Definition: le_update_interface.h:243
le_result_t le_update_Start(int fd)
struct le_update_ProgressHandler * le_update_ProgressHandlerRef_t
Definition: le_update_interface.h:285
Something failed while doing update. Check logs.
Definition: le_update_interface.h:271
Successfully completed all update task.
Definition: le_update_interface.h:246
void le_update_RemoveProgressHandler(le_update_ProgressHandlerRef_t addHandlerRef)
le_update_ProgressHandlerRef_t le_update_AddProgressHandler(le_update_ProgressHandlerFunc_t handlerPtr, void *contextPtr)
le_update_State_t
Definition: le_update_interface.h:238
int32_t le_update_GetCurrentSysIndex(void)
Error while doing security check of the package.
Definition: le_update_interface.h:274
void le_update_ConnectService(void)
void le_update_DisconnectService(void)
void(* le_update_ProgressHandlerFunc_t)(le_update_State_t updateState, uint percentDone, void *contextPtr)
Definition: le_update_interface.h:302
Unpacking update data.
Definition: le_update_interface.h:240
int32_t le_update_GetPreviousSystemIndex(int32_t systemIndex)
le_update_ErrorCode_t le_update_GetErrorCode(void)
No error.
Definition: le_update_interface.h:265
Encountered bad update package. Check logs.
Definition: le_update_interface.h:268