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 
105 #ifndef LE_AVC_H_INCLUDE_GUARD
106 #define LE_AVC_H_INCLUDE_GUARD
107 
108 
109 #include "legato.h"
110 
111 //--------------------------------------------------------------------------------------------------
115 //--------------------------------------------------------------------------------------------------
117 (
118  void
119 );
120 
121 //--------------------------------------------------------------------------------------------------
125 //--------------------------------------------------------------------------------------------------
127 (
128  void
129 );
130 
131 
132 //--------------------------------------------------------------------------------------------------
138 //--------------------------------------------------------------------------------------------------
139 typedef enum
140 {
143 
146 
149 
152 
155 
158 }
160 
161 
162 //--------------------------------------------------------------------------------------------------
166 //--------------------------------------------------------------------------------------------------
167 typedef enum
168 {
169  LE_AVC_FIRMWARE_UPDATE,
170  LE_AVC_FRAMEWORK_UPDATE,
171  LE_AVC_APPLICATION_UPDATE
172 }
174 
175 
176 //--------------------------------------------------------------------------------------------------
180 //--------------------------------------------------------------------------------------------------
181 #define LE_AVC_APP_NAME_LEN 47
182 
183 
184 //--------------------------------------------------------------------------------------------------
188 //--------------------------------------------------------------------------------------------------
189 typedef struct le_avc_StatusEventHandler* le_avc_StatusEventHandlerRef_t;
190 
191 
192 //--------------------------------------------------------------------------------------------------
196 //--------------------------------------------------------------------------------------------------
197 typedef struct le_avc_BlockRequest* le_avc_BlockRequestRef_t;
198 
199 
200 //--------------------------------------------------------------------------------------------------
208 //--------------------------------------------------------------------------------------------------
209 typedef void (*le_avc_StatusHandlerFunc_t)
210 (
211  le_avc_Status_t updateStatus,
212  void* contextPtr
213 );
214 
215 //--------------------------------------------------------------------------------------------------
221 //--------------------------------------------------------------------------------------------------
223 (
224  le_avc_StatusHandlerFunc_t handlerPtr,
226 
227  void* contextPtr
229 );
230 
231 //--------------------------------------------------------------------------------------------------
235 //--------------------------------------------------------------------------------------------------
237 (
238  le_avc_StatusEventHandlerRef_t addHandlerRef
240 );
241 
242 //--------------------------------------------------------------------------------------------------
252 //--------------------------------------------------------------------------------------------------
254 (
255  void
256 );
257 
258 //--------------------------------------------------------------------------------------------------
266 //--------------------------------------------------------------------------------------------------
268 (
269  void
270 );
271 
272 //--------------------------------------------------------------------------------------------------
280 //--------------------------------------------------------------------------------------------------
282 (
283  void
284 );
285 
286 //--------------------------------------------------------------------------------------------------
294 //--------------------------------------------------------------------------------------------------
296 (
297  uint32_t deferMinutes
299 );
300 
301 //--------------------------------------------------------------------------------------------------
309 //--------------------------------------------------------------------------------------------------
311 (
312  void
313 );
314 
315 //--------------------------------------------------------------------------------------------------
323 //--------------------------------------------------------------------------------------------------
325 (
326  void
327 );
328 
329 //--------------------------------------------------------------------------------------------------
337 //--------------------------------------------------------------------------------------------------
339 (
340  uint32_t deferMinutes
342 );
343 
344 //--------------------------------------------------------------------------------------------------
352 //--------------------------------------------------------------------------------------------------
354 (
355  le_avc_UpdateType_t* updateTypePtr
357 );
358 
359 //--------------------------------------------------------------------------------------------------
367 //--------------------------------------------------------------------------------------------------
369 (
370  char* updateName,
372 
373  size_t updateNameNumElements
375 );
376 
377 //--------------------------------------------------------------------------------------------------
385 //--------------------------------------------------------------------------------------------------
387 (
388  void
389 );
390 
391 //--------------------------------------------------------------------------------------------------
395 //--------------------------------------------------------------------------------------------------
397 (
398  le_avc_BlockRequestRef_t blockRef
401 );
402 
403 
404 #endif // LE_AVC_H_INCLUDE_GUARD
405 
The was an error in installing the update.
Definition: le_avc_interface.h:156
le_result_t
Definition: le_basics.h:35
void le_avc_RemoveStatusEventHandler(le_avc_StatusEventHandlerRef_t addHandlerRef)
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:147
There is a pending install (implies download complete)
Definition: le_avc_interface.h:150
le_result_t le_avc_GetUpdateType(le_avc_UpdateType_t *updateTypePtr)
le_result_t le_avc_RejectDownload(void)
le_result_t le_avc_StartSession(void)
le_result_t le_avc_StopSession(void)
There is a pending download.
Definition: le_avc_interface.h:144
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:153
le_result_t le_avc_AcceptInstall(void)
struct le_avc_BlockRequest * le_avc_BlockRequestRef_t
Definition: le_avc_interface.h:197
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:210
void le_avc_DisconnectService(void)
le_avc_UpdateType_t
Definition: le_avc_interface.h:167
le_result_t le_avc_DeferDownload(uint32_t deferMinutes)
There are no pending updates.
Definition: le_avc_interface.h:141
struct le_avc_StatusEventHandler * le_avc_StatusEventHandlerRef_t
Definition: le_avc_interface.h:189
le_avc_Status_t
Definition: le_avc_interface.h:139
le_result_t le_avc_GetAppUpdateName(char *updateName, size_t updateNameNumElements)
void le_avc_ConnectService(void)