le_update_interface.h
Go to the documentation of this file.
80 * If the client disconnects before ending the update session, the session will automatically end.188 //--------------------------------------------------------------------------------------------------191 * Connect the current client thread to the service providing this API. Block until the service is194 * For each thread that wants to use this API, either ConnectService or TryConnectService must be195 * called before any other functions in this API. Normally, ConnectService is automatically called200 //--------------------------------------------------------------------------------------------------206 //--------------------------------------------------------------------------------------------------209 * Try to connect the current client thread to the service providing this API. Return with an error212 * For each thread that wants to use this API, either ConnectService or TryConnectService must be213 * called before any other functions in this API. Normally, ConnectService is automatically called220 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.221 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).224 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------236 * longer a connection to the service, and the functions in this API can't be used. For details, see241 //--------------------------------------------------------------------------------------------------248 //--------------------------------------------------------------------------------------------------262 //--------------------------------------------------------------------------------------------------280 //--------------------------------------------------------------------------------------------------287 //--------------------------------------------------------------------------------------------------305 //--------------------------------------------------------------------------------------------------309 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------325 //--------------------------------------------------------------------------------------------------327 (333 //--------------------------------------------------------------------------------------------------339 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------353 //--------------------------------------------------------------------------------------------------360 //--------------------------------------------------------------------------------------------------371 //--------------------------------------------------------------------------------------------------378 //--------------------------------------------------------------------------------------------------382 //--------------------------------------------------------------------------------------------------388 //--------------------------------------------------------------------------------------------------396 //--------------------------------------------------------------------------------------------------402 //--------------------------------------------------------------------------------------------------408 //--------------------------------------------------------------------------------------------------414 //--------------------------------------------------------------------------------------------------424 //--------------------------------------------------------------------------------------------------437 //--------------------------------------------------------------------------------------------------439 * Get the index for the previous system in the chain, using the current system as a starting point.444 //--------------------------------------------------------------------------------------------------void le_update_End(void)le_result_t le_update_GetSystemHash(int32_t systemIndex, char *hashStr, size_t hashStrNumElements)Update failed due to some error or deletion request.Definition: le_update_interface.h:274Applying update(i.e. installation/removal operation going on).Definition: le_update_interface.h:268le_result_t le_update_Start(int fd)struct le_update_ProgressHandler * le_update_ProgressHandlerRef_tDefinition: le_update_interface.h:310Something failed while doing update. Check logs.Definition: le_update_interface.h:296Successfully completed all update task.Definition: le_update_interface.h:271void(* le_update_ProgressHandlerFunc_t)(le_update_State_t updateState, uint32_t percentDone, void *contextPtr)Definition: le_update_interface.h:327void le_update_RemoveProgressHandler(le_update_ProgressHandlerRef_t addHandlerRef)le_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)Error while doing security check of the package.Definition: le_update_interface.h:299void le_update_ConnectService(void)void le_update_DisconnectService(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:293