All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 
104 #ifndef LE_AVC_INTERFACE_H_INCLUDE_GUARD
105 #define LE_AVC_INTERFACE_H_INCLUDE_GUARD
106 
107 
108 #include "legato.h"
109 
110 //--------------------------------------------------------------------------------------------------
114 //--------------------------------------------------------------------------------------------------
116 (
117  void
118 );
119 
120 //--------------------------------------------------------------------------------------------------
124 //--------------------------------------------------------------------------------------------------
126 (
127  void
128 );
129 
130 
131 //--------------------------------------------------------------------------------------------------
137 //--------------------------------------------------------------------------------------------------
138 typedef enum
139 {
142 
145 
148 
151 
154 
157 
160 
163 
166 }
168 
169 
170 //--------------------------------------------------------------------------------------------------
174 //--------------------------------------------------------------------------------------------------
175 typedef enum
176 {
177  LE_AVC_UNKNOWN_UPDATE,
178  LE_AVC_FIRMWARE_UPDATE,
179  LE_AVC_FRAMEWORK_UPDATE,
180  LE_AVC_APPLICATION_UPDATE
181 }
183 
184 
185 //--------------------------------------------------------------------------------------------------
189 //--------------------------------------------------------------------------------------------------
190 #define LE_AVC_APP_NAME_LEN 47
191 
192 
193 //--------------------------------------------------------------------------------------------------
197 //--------------------------------------------------------------------------------------------------
198 typedef struct le_avc_StatusEventHandler* le_avc_StatusEventHandlerRef_t;
199 
200 
201 //--------------------------------------------------------------------------------------------------
205 //--------------------------------------------------------------------------------------------------
206 typedef struct le_avc_BlockRequest* le_avc_BlockRequestRef_t;
207 
208 
209 //--------------------------------------------------------------------------------------------------
217 //--------------------------------------------------------------------------------------------------
218 typedef void (*le_avc_StatusHandlerFunc_t)
219 (
220  le_avc_Status_t updateStatus,
221  void* contextPtr
222 );
223 
224 //--------------------------------------------------------------------------------------------------
230 //--------------------------------------------------------------------------------------------------
232 (
233  le_avc_StatusHandlerFunc_t handlerPtr,
235 
236  void* contextPtr
238 );
239 
240 //--------------------------------------------------------------------------------------------------
244 //--------------------------------------------------------------------------------------------------
246 (
247  le_avc_StatusEventHandlerRef_t addHandlerRef
249 );
250 
251 //--------------------------------------------------------------------------------------------------
261 //--------------------------------------------------------------------------------------------------
263 (
264  void
265 );
266 
267 //--------------------------------------------------------------------------------------------------
275 //--------------------------------------------------------------------------------------------------
277 (
278  void
279 );
280 
281 //--------------------------------------------------------------------------------------------------
289 //--------------------------------------------------------------------------------------------------
291 (
292  void
293 );
294 
295 //--------------------------------------------------------------------------------------------------
303 //--------------------------------------------------------------------------------------------------
305 (
306  uint32_t deferMinutes
308 );
309 
310 //--------------------------------------------------------------------------------------------------
318 //--------------------------------------------------------------------------------------------------
320 (
321  void
322 );
323 
324 //--------------------------------------------------------------------------------------------------
332 //--------------------------------------------------------------------------------------------------
334 (
335  void
336 );
337 
338 //--------------------------------------------------------------------------------------------------
346 //--------------------------------------------------------------------------------------------------
348 (
349  uint32_t deferMinutes
351 );
352 
353 //--------------------------------------------------------------------------------------------------
361 //--------------------------------------------------------------------------------------------------
363 (
364  le_avc_UpdateType_t* updateTypePtr
366 );
367 
368 //--------------------------------------------------------------------------------------------------
376 //--------------------------------------------------------------------------------------------------
378 (
379  char* updateName,
381 
382  size_t updateNameNumElements
384 );
385 
386 //--------------------------------------------------------------------------------------------------
394 //--------------------------------------------------------------------------------------------------
396 (
397  void
398 );
399 
400 //--------------------------------------------------------------------------------------------------
404 //--------------------------------------------------------------------------------------------------
406 (
407  le_avc_BlockRequestRef_t blockRef
410 );
411 
412 
413 #endif // LE_AVC_INTERFACE_H_INCLUDE_GUARD
414 
The was an error in installing the update.
Definition: le_avc_interface.h:164
le_result_t
Definition: le_basics.h:35
void le_avc_RemoveStatusEventHandler(le_avc_StatusEventHandlerRef_t addHandlerRef)
There is an install in progress.
Definition: le_avc_interface.h:158
void le_avc_UnblockInstall(le_avc_BlockRequestRef_t blockRef)
le_avc_StatusEventHandlerRef_t le_avc_AddStatusEventHandler(le_avc_StatusHandlerFunc_t handlerPtr, void *contextPtr)
There was an error in downloading the update.
Definition: le_avc_interface.h:152
There is a pending install (implies download complete)
Definition: le_avc_interface.h:155
le_result_t le_avc_GetUpdateType(le_avc_UpdateType_t *updateTypePtr)
le_result_t le_avc_RejectDownload(void)
There is a download in progress.
Definition: le_avc_interface.h:146
le_result_t le_avc_StartSession(void)
le_result_t le_avc_StopSession(void)
There is a pending download.
Definition: le_avc_interface.h:143
le_result_t le_avc_AcceptDownload(void)
le_result_t le_avc_DeferInstall(uint32_t deferMinutes)
The update has been successfully installed.
Definition: le_avc_interface.h:161
le_result_t le_avc_AcceptInstall(void)
struct le_avc_BlockRequest * le_avc_BlockRequestRef_t
Definition: le_avc_interface.h:206
le_avc_BlockRequestRef_t le_avc_BlockInstall(void)
void(* le_avc_StatusHandlerFunc_t)(le_avc_Status_t updateStatus, void *contextPtr)
Definition: le_avc_interface.h:219
void le_avc_DisconnectService(void)
le_avc_UpdateType_t
Definition: le_avc_interface.h:175
le_result_t le_avc_DeferDownload(uint32_t deferMinutes)
The download has completed.
Definition: le_avc_interface.h:149
There are no pending updates.
Definition: le_avc_interface.h:140
struct le_avc_StatusEventHandler * le_avc_StatusEventHandlerRef_t
Definition: le_avc_interface.h:198
le_avc_Status_t
Definition: le_avc_interface.h:138
le_result_t le_avc_GetAppUpdateName(char *updateName, size_t updateNameNumElements)
void le_avc_ConnectService(void)