le_update_interface.h
Go to the documentation of this file.
48 * If the client disconnects before ending the update session, the session will automatically end.155 //--------------------------------------------------------------------------------------------------159 //--------------------------------------------------------------------------------------------------162 //--------------------------------------------------------------------------------------------------165 * Connect the current client thread to the service providing this API. Block until the service is168 * For each thread that wants to use this API, either ConnectService or TryConnectService must be169 * called before any other functions in this API. Normally, ConnectService is automatically called174 //--------------------------------------------------------------------------------------------------180 //--------------------------------------------------------------------------------------------------183 * Try to connect the current client thread to the service providing this API. Return with an error186 * For each thread that wants to use this API, either ConnectService or TryConnectService must be187 * called before any other functions in this API. Normally, ConnectService is automatically called196 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).199 //--------------------------------------------------------------------------------------------------205 //--------------------------------------------------------------------------------------------------209 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants212 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------225 * longer a connection to the service, and the functions in this API can't be used. For details, see230 //--------------------------------------------------------------------------------------------------237 //--------------------------------------------------------------------------------------------------251 //--------------------------------------------------------------------------------------------------268 //--------------------------------------------------------------------------------------------------275 //--------------------------------------------------------------------------------------------------290 //--------------------------------------------------------------------------------------------------294 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------304 (315 //--------------------------------------------------------------------------------------------------321 //--------------------------------------------------------------------------------------------------330 //--------------------------------------------------------------------------------------------------334 //--------------------------------------------------------------------------------------------------341 //--------------------------------------------------------------------------------------------------352 //--------------------------------------------------------------------------------------------------359 //--------------------------------------------------------------------------------------------------368 //--------------------------------------------------------------------------------------------------374 //--------------------------------------------------------------------------------------------------378 //--------------------------------------------------------------------------------------------------384 //--------------------------------------------------------------------------------------------------392 //--------------------------------------------------------------------------------------------------398 //--------------------------------------------------------------------------------------------------404 //--------------------------------------------------------------------------------------------------410 //--------------------------------------------------------------------------------------------------420 //--------------------------------------------------------------------------------------------------431 //--------------------------------------------------------------------------------------------------433 * Get the index for the previous system in the chain, using the current system as a starting point.438 //--------------------------------------------------------------------------------------------------void le_update_End(void)void(* le_update_DisconnectHandler_t)(void *)Definition: le_update_interface.h:160Update failed due to some error or deletion request.Definition: le_update_interface.h:262Applying update(i.e. installation/removal operation going on).Definition: le_update_interface.h:258void le_update_RemoveProgressHandler(le_update_ProgressHandlerRef_t handlerRef)void le_update_SetServerDisconnectHandler(le_update_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_update_Start(int fd)struct le_update_ProgressHandler * le_update_ProgressHandlerRef_tDefinition: le_update_interface.h:295Something failed while doing update. Check logs.Definition: le_update_interface.h:282Successfully completed all update task.Definition: le_update_interface.h:260void(* le_update_ProgressHandlerFunc_t)(le_update_State_t updateState, uint32_t percentDone, void *contextPtr)Definition: le_update_interface.h:304le_result_t le_update_TryConnectService(void)le_update_ProgressHandlerRef_t le_update_AddProgressHandler(le_update_ProgressHandlerFunc_t handlerPtr, void *contextPtr)int32_t le_update_GetCurrentSysIndex(void)le_result_t le_update_GetSystemHash(int32_t systemIndex, char *hashStr, size_t hashStrSize)Update data downloaded successfully.Definition: le_update_interface.h:256Error while doing security check of the package.Definition: le_update_interface.h:284void le_update_ConnectService(void)void le_update_DisconnectService(void)le_result_t le_update_Install(void)int32_t le_update_GetPreviousSystemIndex(int32_t systemIndex)le_update_ErrorCode_t le_update_GetErrorCode(void)Encountered bad update package. Check logs.Definition: le_update_interface.h:280