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 
96 #ifndef LE_AVC_INTERFACE_H_INCLUDE_GUARD
97 #define LE_AVC_INTERFACE_H_INCLUDE_GUARD
98 
99 
100 #include "legato.h"
101 
102 // Interface specific includes
103 #include "le_limit_interface.h"
104 
105 
106 //--------------------------------------------------------------------------------------------------
110 //--------------------------------------------------------------------------------------------------
112 (
113  void
114 );
115 
116 //--------------------------------------------------------------------------------------------------
120 //--------------------------------------------------------------------------------------------------
122 (
123  void
124 );
125 
126 
127 //--------------------------------------------------------------------------------------------------
133 //--------------------------------------------------------------------------------------------------
134 typedef enum
135 {
138 
141 
144 
147 
150 
153 
156 
159 
162 
165 
168 }
170 
171 
172 //--------------------------------------------------------------------------------------------------
176 //--------------------------------------------------------------------------------------------------
177 typedef enum
178 {
179  LE_AVC_UNKNOWN_UPDATE,
180  LE_AVC_FIRMWARE_UPDATE,
181  LE_AVC_FRAMEWORK_UPDATE,
182  LE_AVC_APPLICATION_UPDATE
183 }
185 
186 
187 //--------------------------------------------------------------------------------------------------
191 //--------------------------------------------------------------------------------------------------
192 typedef struct le_avc_StatusEventHandler* le_avc_StatusEventHandlerRef_t;
193 
194 
195 //--------------------------------------------------------------------------------------------------
199 //--------------------------------------------------------------------------------------------------
200 typedef struct le_avc_BlockRequest* le_avc_BlockRequestRef_t;
201 
202 
203 //--------------------------------------------------------------------------------------------------
221 //--------------------------------------------------------------------------------------------------
222 typedef void (*le_avc_StatusHandlerFunc_t)
223 (
224  le_avc_Status_t updateStatus,
225  int32_t totalNumBytes,
226  int32_t dloadProgress,
227  void* contextPtr
228 );
229 
230 //--------------------------------------------------------------------------------------------------
236 //--------------------------------------------------------------------------------------------------
238 (
239  le_avc_StatusHandlerFunc_t handlerPtr,
241 
242  void* contextPtr
244 );
245 
246 //--------------------------------------------------------------------------------------------------
250 //--------------------------------------------------------------------------------------------------
252 (
253  le_avc_StatusEventHandlerRef_t addHandlerRef
255 );
256 
257 //--------------------------------------------------------------------------------------------------
268 //--------------------------------------------------------------------------------------------------
270 (
271  void
272 );
273 
274 //--------------------------------------------------------------------------------------------------
284 //--------------------------------------------------------------------------------------------------
286 (
287  void
288 );
289 
290 //--------------------------------------------------------------------------------------------------
298 //--------------------------------------------------------------------------------------------------
300 (
301  void
302 );
303 
304 //--------------------------------------------------------------------------------------------------
312 //--------------------------------------------------------------------------------------------------
314 (
315  uint32_t deferMinutes
317 );
318 
319 //--------------------------------------------------------------------------------------------------
327 //--------------------------------------------------------------------------------------------------
329 (
330  void
331 );
332 
333 //--------------------------------------------------------------------------------------------------
341 //--------------------------------------------------------------------------------------------------
343 (
344  uint32_t deferMinutes
346 );
347 
348 //--------------------------------------------------------------------------------------------------
356 //--------------------------------------------------------------------------------------------------
358 (
359  le_avc_UpdateType_t* updateTypePtr
361 );
362 
363 //--------------------------------------------------------------------------------------------------
371 //--------------------------------------------------------------------------------------------------
373 (
374  char* updateName,
376 
377  size_t updateNameNumElements
379 );
380 
381 //--------------------------------------------------------------------------------------------------
389 //--------------------------------------------------------------------------------------------------
391 (
392  void
393 );
394 
395 //--------------------------------------------------------------------------------------------------
399 //--------------------------------------------------------------------------------------------------
401 (
402  le_avc_BlockRequestRef_t blockRef
405 );
406 
407 
408 #endif // LE_AVC_INTERFACE_H_INCLUDE_GUARD
409 
The was an error in installing the update.
Definition: le_avc_interface.h:160
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:154
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:148
There is a pending install (implies download complete)
Definition: le_avc_interface.h:151
le_result_t le_avc_GetUpdateType(le_avc_UpdateType_t *updateTypePtr)
Session with AV server stopped.
Definition: le_avc_interface.h:166
Session with AV server started.
Definition: le_avc_interface.h:163
There is a download in progress.
Definition: le_avc_interface.h:142
le_result_t le_avc_StartSession(void)
le_result_t le_avc_StopSession(void)
There is a pending download.
Definition: le_avc_interface.h:139
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:157
le_result_t le_avc_AcceptInstall(void)
struct le_avc_BlockRequest * le_avc_BlockRequestRef_t
Definition: le_avc_interface.h:200
le_avc_BlockRequestRef_t le_avc_BlockInstall(void)
void le_avc_DisconnectService(void)
le_avc_UpdateType_t
Definition: le_avc_interface.h:177
le_result_t le_avc_DeferDownload(uint32_t deferMinutes)
The download has completed.
Definition: le_avc_interface.h:145
There are no pending updates.
Definition: le_avc_interface.h:136
void(* le_avc_StatusHandlerFunc_t)(le_avc_Status_t updateStatus, int32_t totalNumBytes, int32_t dloadProgress, void *contextPtr)
Definition: le_avc_interface.h:223
struct le_avc_StatusEventHandler * le_avc_StatusEventHandlerRef_t
Definition: le_avc_interface.h:192
le_avc_Status_t
Definition: le_avc_interface.h:134
le_result_t le_avc_GetAppUpdateName(char *updateName, size_t updateNameNumElements)
void le_avc_ConnectService(void)