le_update_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 
173 #ifndef LE_UPDATE_INTERFACE_H_INCLUDE_GUARD
174 #define LE_UPDATE_INTERFACE_H_INCLUDE_GUARD
175 
176 
177 #include "legato.h"
178 
179 //--------------------------------------------------------------------------------------------------
183 //--------------------------------------------------------------------------------------------------
185 (
186  void
187 );
188 
189 //--------------------------------------------------------------------------------------------------
193 //--------------------------------------------------------------------------------------------------
195 (
196  void
197 );
198 
199 
200 //--------------------------------------------------------------------------------------------------
204 //--------------------------------------------------------------------------------------------------
205 typedef struct le_update_Handle* le_update_HandleRef_t;
206 
207 
208 //--------------------------------------------------------------------------------------------------
220 //--------------------------------------------------------------------------------------------------
221 typedef enum
222 {
225 
228 
231 
234 
237 }
239 
240 
241 //--------------------------------------------------------------------------------------------------
248 //--------------------------------------------------------------------------------------------------
249 typedef enum
250 {
253 
256 
259 
262 
265 
268 
271 }
273 
274 
275 //--------------------------------------------------------------------------------------------------
279 //--------------------------------------------------------------------------------------------------
280 typedef struct le_update_ProgressHandler* le_update_ProgressHandlerRef_t;
281 
282 
283 //--------------------------------------------------------------------------------------------------
296 //--------------------------------------------------------------------------------------------------
297 typedef void (*le_update_ProgressHandlerFunc_t)
298 (
299  le_update_State_t updateState,
300  uint percentDone,
301  void* contextPtr
302 );
303 
304 //--------------------------------------------------------------------------------------------------
312 //--------------------------------------------------------------------------------------------------
314 (
315  int fileDesc
318 );
319 
320 //--------------------------------------------------------------------------------------------------
331 //--------------------------------------------------------------------------------------------------
333 (
334  le_update_HandleRef_t handle
337 );
338 
339 //--------------------------------------------------------------------------------------------------
345 //--------------------------------------------------------------------------------------------------
346 void le_update_Delete
347 (
348  le_update_HandleRef_t handle
351 );
352 
353 //--------------------------------------------------------------------------------------------------
361 //--------------------------------------------------------------------------------------------------
363 (
364  le_update_HandleRef_t handle
367 );
368 
369 //--------------------------------------------------------------------------------------------------
375 //--------------------------------------------------------------------------------------------------
377 (
378  le_update_HandleRef_t handle,
381 
384 
385  void* contextPtr
387 );
388 
389 //--------------------------------------------------------------------------------------------------
393 //--------------------------------------------------------------------------------------------------
395 (
396  le_update_ProgressHandlerRef_t addHandlerRef
398 );
399 
400 
401 #endif // LE_UPDATE_INTERFACE_H_INCLUDE_GUARD
402 
Update failed due to some error or deletion request.
Definition: le_update_interface.h:235
le_result_t
Definition: le_basics.h:35
le_update_ErrorCode_t
Definition: le_update_interface.h:249
Applying update(i.e. installation/removal operation going on).
Definition: le_update_interface.h:229
Attempted to install update on wrong type of target device.
Definition: le_update_interface.h:269
le_update_ProgressHandlerRef_t le_update_AddProgressHandler(le_update_HandleRef_t handle, le_update_ProgressHandlerFunc_t handlerPtr, void *contextPtr)
struct le_update_ProgressHandler * le_update_ProgressHandlerRef_t
Definition: le_update_interface.h:280
Something failed while doing update. Check logs.
Definition: le_update_interface.h:260
Successfully completed all update task.
Definition: le_update_interface.h:232
Encountered IO error.
Definition: le_update_interface.h:257
Requested new update task.
Definition: le_update_interface.h:223
le_result_t le_update_Start(le_update_HandleRef_t handle)
void le_update_RemoveProgressHandler(le_update_ProgressHandlerRef_t addHandlerRef)
le_update_State_t
Definition: le_update_interface.h:221
void le_update_ConnectService(void)
void le_update_DisconnectService(void)
struct le_update_Handle * le_update_HandleRef_t
Definition: le_update_interface.h:205
void(* le_update_ProgressHandlerFunc_t)(le_update_State_t updateState, uint percentDone, void *contextPtr)
Definition: le_update_interface.h:298
Not enough memory available to install update.
Definition: le_update_interface.h:263
le_update_HandleRef_t le_update_Create(int fileDesc)
le_update_ErrorCode_t le_update_GetErrorCode(le_update_HandleRef_t handle)
Unpacking update data.
Definition: le_update_interface.h:226
The supplied update package was not properly constructed.
Definition: le_update_interface.h:254
No error.
Definition: le_update_interface.h:251
void le_update_Delete(le_update_HandleRef_t handle)
Update depends on software not installed on target.
Definition: le_update_interface.h:266