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 
135 #ifndef LE_AVC_INTERFACE_H_INCLUDE_GUARD
136 #define LE_AVC_INTERFACE_H_INCLUDE_GUARD
137 
138 
139 #include "legato.h"
140 
141 // Interface specific includes
142 #include "le_limit_interface.h"
143 
144 
145 //--------------------------------------------------------------------------------------------------
149 //--------------------------------------------------------------------------------------------------
151 (
152  void
153 );
154 
155 //--------------------------------------------------------------------------------------------------
159 //--------------------------------------------------------------------------------------------------
161 (
162  void
163 );
164 
165 
166 //--------------------------------------------------------------------------------------------------
172 //--------------------------------------------------------------------------------------------------
173 typedef enum
174 {
177 
180 
183 
186 
189 
192 
195 
198 
201 
204 
207 
210 
213 
216 
219 }
221 
222 
223 //--------------------------------------------------------------------------------------------------
227 //--------------------------------------------------------------------------------------------------
228 typedef enum
229 {
230  LE_AVC_UNKNOWN_UPDATE,
231  LE_AVC_FIRMWARE_UPDATE,
232  LE_AVC_FRAMEWORK_UPDATE,
233  LE_AVC_APPLICATION_UPDATE
234 }
236 
237 
238 //--------------------------------------------------------------------------------------------------
242 //--------------------------------------------------------------------------------------------------
243 typedef struct le_avc_StatusEventHandler* le_avc_StatusEventHandlerRef_t;
244 
245 
246 //--------------------------------------------------------------------------------------------------
250 //--------------------------------------------------------------------------------------------------
251 typedef struct le_avc_BlockRequest* le_avc_BlockRequestRef_t;
252 
253 
254 //--------------------------------------------------------------------------------------------------
272 //--------------------------------------------------------------------------------------------------
273 typedef void (*le_avc_StatusHandlerFunc_t)
274 (
275  le_avc_Status_t updateStatus,
276  int32_t totalNumBytes,
277  int32_t dloadProgress,
278  void* contextPtr
279 );
280 
281 //--------------------------------------------------------------------------------------------------
287 //--------------------------------------------------------------------------------------------------
289 (
290  le_avc_StatusHandlerFunc_t handlerPtr,
292 
293  void* contextPtr
295 );
296 
297 //--------------------------------------------------------------------------------------------------
301 //--------------------------------------------------------------------------------------------------
303 (
304  le_avc_StatusEventHandlerRef_t addHandlerRef
306 );
307 
308 //--------------------------------------------------------------------------------------------------
319 //--------------------------------------------------------------------------------------------------
321 (
322  void
323 );
324 
325 //--------------------------------------------------------------------------------------------------
335 //--------------------------------------------------------------------------------------------------
337 (
338  void
339 );
340 
341 //--------------------------------------------------------------------------------------------------
349 //--------------------------------------------------------------------------------------------------
351 (
352  void
353 );
354 
355 //--------------------------------------------------------------------------------------------------
363 //--------------------------------------------------------------------------------------------------
365 (
366  uint32_t deferMinutes
368 );
369 
370 //--------------------------------------------------------------------------------------------------
378 //--------------------------------------------------------------------------------------------------
380 (
381  void
382 );
383 
384 //--------------------------------------------------------------------------------------------------
392 //--------------------------------------------------------------------------------------------------
394 (
395  uint32_t deferMinutes
397 );
398 
399 //--------------------------------------------------------------------------------------------------
407 //--------------------------------------------------------------------------------------------------
409 (
410  void
411 );
412 
413 //--------------------------------------------------------------------------------------------------
421 //--------------------------------------------------------------------------------------------------
423 (
424  uint32_t deferMinutes
426 );
427 
428 //--------------------------------------------------------------------------------------------------
436 //--------------------------------------------------------------------------------------------------
438 (
439  le_avc_UpdateType_t* updateTypePtr
441 );
442 
443 //--------------------------------------------------------------------------------------------------
451 //--------------------------------------------------------------------------------------------------
453 (
454  char* updateName,
456 
457  size_t updateNameNumElements
459 );
460 
461 //--------------------------------------------------------------------------------------------------
469 //--------------------------------------------------------------------------------------------------
471 (
472  void
473 );
474 
475 //--------------------------------------------------------------------------------------------------
479 //--------------------------------------------------------------------------------------------------
481 (
482  le_avc_BlockRequestRef_t blockRef
485 );
486 
487 
488 #endif // LE_AVC_INTERFACE_H_INCLUDE_GUARD
489 
Uninstall in progress.
Definition: le_avc_interface.h:205
Uninstall is pending.
Definition: le_avc_interface.h:202
An error occurred installing the update.
Definition: le_avc_interface.h:199
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:211
Install in progress.
Definition: le_avc_interface.h:193
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:187
le_result_t le_avc_DeferUninstall(uint32_t deferMinutes)
Install is pending (implies download complete)
Definition: le_avc_interface.h:190
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:217
Session with AV server started.
Definition: le_avc_interface.h:214
Download in progress.
Definition: le_avc_interface.h:181
le_result_t le_avc_StartSession(void)
le_result_t le_avc_StopSession(void)
Update pending download.
Definition: le_avc_interface.h:178
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:196
le_result_t le_avc_AcceptInstall(void)
struct le_avc_BlockRequest * le_avc_BlockRequestRef_t
Definition: le_avc_interface.h:251
le_avc_BlockRequestRef_t le_avc_BlockInstall(void)
void le_avc_DisconnectService(void)
le_avc_UpdateType_t
Definition: le_avc_interface.h:228
le_result_t le_avc_DeferDownload(uint32_t deferMinutes)
Download has completed.
Definition: le_avc_interface.h:184
No updates pending.
Definition: le_avc_interface.h:175
void(* le_avc_StatusHandlerFunc_t)(le_avc_Status_t updateStatus, int32_t totalNumBytes, int32_t dloadProgress, void *contextPtr)
Definition: le_avc_interface.h:274
struct le_avc_StatusEventHandler * le_avc_StatusEventHandlerRef_t
Definition: le_avc_interface.h:243
le_avc_Status_t
Definition: le_avc_interface.h:173
App has been successfully uninstalled.
Definition: le_avc_interface.h:208
le_result_t le_avc_GetAppUpdateName(char *updateName, size_t updateNameNumElements)
void le_avc_ConnectService(void)