le_avc_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 
145 #ifndef LE_AVC_INTERFACE_H_INCLUDE_GUARD
146 #define LE_AVC_INTERFACE_H_INCLUDE_GUARD
147 
148 
149 #include "legato.h"
150 
151 // Interface specific includes
152 #include "le_limit_interface.h"
153 
154 
155 //--------------------------------------------------------------------------------------------------
166 //--------------------------------------------------------------------------------------------------
168 (
169  void
170 );
171 
172 //--------------------------------------------------------------------------------------------------
183 //--------------------------------------------------------------------------------------------------
185 (
186  void
187 );
188 
189 
190 //--------------------------------------------------------------------------------------------------
196 //--------------------------------------------------------------------------------------------------
197 typedef enum
198 {
201 
204 
207 
210 
213 
216 
219 
222 
225 
228 
231 
234 
237 
240 
243 }
245 
246 
247 //--------------------------------------------------------------------------------------------------
251 //--------------------------------------------------------------------------------------------------
252 typedef enum
253 {
254  LE_AVC_UNKNOWN_UPDATE,
255  LE_AVC_FIRMWARE_UPDATE,
256  LE_AVC_FRAMEWORK_UPDATE,
257  LE_AVC_APPLICATION_UPDATE
258 }
260 
261 
262 //--------------------------------------------------------------------------------------------------
270 //--------------------------------------------------------------------------------------------------
271 typedef enum
272 {
275 
278 
281 
284 }
286 
287 
288 //--------------------------------------------------------------------------------------------------
292 //--------------------------------------------------------------------------------------------------
293 typedef struct le_avc_StatusEventHandler* le_avc_StatusEventHandlerRef_t;
294 
295 
296 //--------------------------------------------------------------------------------------------------
300 //--------------------------------------------------------------------------------------------------
301 typedef struct le_avc_BlockRequest* le_avc_BlockRequestRef_t;
302 
303 
304 //--------------------------------------------------------------------------------------------------
322 //--------------------------------------------------------------------------------------------------
323 typedef void (*le_avc_StatusHandlerFunc_t)
324 (
325  le_avc_Status_t updateStatus,
326  int32_t totalNumBytes,
327  int32_t dloadProgress,
328  void* contextPtr
329 );
330 
331 //--------------------------------------------------------------------------------------------------
337 //--------------------------------------------------------------------------------------------------
339 (
340  le_avc_StatusHandlerFunc_t handlerPtr,
342 
343  void* contextPtr
345 );
346 
347 //--------------------------------------------------------------------------------------------------
351 //--------------------------------------------------------------------------------------------------
353 (
354  le_avc_StatusEventHandlerRef_t addHandlerRef
356 );
357 
358 //--------------------------------------------------------------------------------------------------
369 //--------------------------------------------------------------------------------------------------
371 (
372  void
373 );
374 
375 //--------------------------------------------------------------------------------------------------
385 //--------------------------------------------------------------------------------------------------
387 (
388  void
389 );
390 
391 //--------------------------------------------------------------------------------------------------
399 //--------------------------------------------------------------------------------------------------
401 (
402  void
403 );
404 
405 //--------------------------------------------------------------------------------------------------
413 //--------------------------------------------------------------------------------------------------
415 (
416  uint32_t deferMinutes
418 );
419 
420 //--------------------------------------------------------------------------------------------------
428 //--------------------------------------------------------------------------------------------------
430 (
431  void
432 );
433 
434 //--------------------------------------------------------------------------------------------------
442 //--------------------------------------------------------------------------------------------------
444 (
445  uint32_t deferMinutes
447 );
448 
449 //--------------------------------------------------------------------------------------------------
457 //--------------------------------------------------------------------------------------------------
459 (
460  void
461 );
462 
463 //--------------------------------------------------------------------------------------------------
471 //--------------------------------------------------------------------------------------------------
473 (
474  uint32_t deferMinutes
476 );
477 
478 //--------------------------------------------------------------------------------------------------
486 //--------------------------------------------------------------------------------------------------
488 (
489  le_avc_UpdateType_t* updateTypePtr
491 );
492 
493 //--------------------------------------------------------------------------------------------------
501 //--------------------------------------------------------------------------------------------------
503 (
504  char* updateName,
506 
507  size_t updateNameNumElements
509 );
510 
511 //--------------------------------------------------------------------------------------------------
519 //--------------------------------------------------------------------------------------------------
521 (
522  void
523 );
524 
525 //--------------------------------------------------------------------------------------------------
529 //--------------------------------------------------------------------------------------------------
531 (
532  le_avc_BlockRequestRef_t blockRef
535 );
536 
537 //--------------------------------------------------------------------------------------------------
545 //--------------------------------------------------------------------------------------------------
547 (
548  void
549 );
550 
551 
552 #endif // LE_AVC_INTERFACE_H_INCLUDE_GUARD
553 
Uninstall in progress.
Definition: le_avc_interface.h:229
Uninstall is pending.
Definition: le_avc_interface.h:226
An error occurred installing the update.
Definition: le_avc_interface.h:223
le_result_t
Definition: le_basics.h:35
void le_avc_RemoveStatusEventHandler(le_avc_StatusEventHandlerRef_t addHandlerRef)
An error occurred uninstalling the update.
Definition: le_avc_interface.h:235
Install in progress.
Definition: le_avc_interface.h:217
void le_avc_UnblockInstall(le_avc_BlockRequestRef_t blockRef)
le_avc_StatusEventHandlerRef_t le_avc_AddStatusEventHandler(le_avc_StatusHandlerFunc_t handlerPtr, void *contextPtr)
An error occurred downloading the update.
Definition: le_avc_interface.h:211
le_result_t le_avc_DeferUninstall(uint32_t deferMinutes)
Install is pending (implies download complete)
Definition: le_avc_interface.h:214
le_result_t le_avc_AcceptUninstall(void)
le_result_t le_avc_GetUpdateType(le_avc_UpdateType_t *updateTypePtr)
Session with AV server stopped.
Definition: le_avc_interface.h:241
Session with AV server started.
Definition: le_avc_interface.h:238
Download in progress.
Definition: le_avc_interface.h:205
le_result_t le_avc_StartSession(void)
le_result_t le_avc_StopSession(void)
Update pending download.
Definition: le_avc_interface.h:202
le_result_t le_avc_AcceptDownload(void)
le_result_t le_avc_DeferInstall(uint32_t deferMinutes)
Update has been successfully installed.
Definition: le_avc_interface.h:220
le_result_t le_avc_AcceptInstall(void)
Something failed while doing install/download.
Definition: le_avc_interface.h:279
struct le_avc_BlockRequest * le_avc_BlockRequestRef_t
Definition: le_avc_interface.h:301
le_avc_BlockRequestRef_t le_avc_BlockInstall(void)
void le_avc_DisconnectService(void)
No error.
Definition: le_avc_interface.h:273
le_avc_UpdateType_t
Definition: le_avc_interface.h:252
le_result_t le_avc_DeferDownload(uint32_t deferMinutes)
Security check failure while installing the package.
Definition: le_avc_interface.h:282
le_avc_ErrorCode_t
Definition: le_avc_interface.h:271
Download has completed.
Definition: le_avc_interface.h:208
No updates pending.
Definition: le_avc_interface.h:199
void(* le_avc_StatusHandlerFunc_t)(le_avc_Status_t updateStatus, int32_t totalNumBytes, int32_t dloadProgress, void *contextPtr)
Definition: le_avc_interface.h:324
struct le_avc_StatusEventHandler * le_avc_StatusEventHandlerRef_t
Definition: le_avc_interface.h:293
Encountered a bad package.
Definition: le_avc_interface.h:276
le_avc_Status_t
Definition: le_avc_interface.h:197
App has been successfully uninstalled.
Definition: le_avc_interface.h:232
le_result_t le_avc_GetAppUpdateName(char *updateName, size_t updateNameNumElements)
le_avc_ErrorCode_t le_avc_GetErrorCode(void)
void le_avc_ConnectService(void)