le_update_interface.h
Go to the documentation of this file.
46 * If the client disconnects before ending the update session, the session will automatically end.154 //--------------------------------------------------------------------------------------------------157 * Connect the current client thread to the service providing this API. Block until the service is160 * For each thread that wants to use this API, either ConnectService or TryConnectService must be161 * called before any other functions in this API. Normally, ConnectService is automatically called166 //--------------------------------------------------------------------------------------------------172 //--------------------------------------------------------------------------------------------------175 * Try to connect the current client thread to the service providing this API. Return with an error178 * For each thread that wants to use this API, either ConnectService or TryConnectService must be179 * called before any other functions in this API. Normally, ConnectService is automatically called186 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.187 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).190 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------202 * longer a connection to the service, and the functions in this API can't be used. For details, see207 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------246 //--------------------------------------------------------------------------------------------------253 //--------------------------------------------------------------------------------------------------271 //--------------------------------------------------------------------------------------------------275 //--------------------------------------------------------------------------------------------------279 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------293 (299 //--------------------------------------------------------------------------------------------------305 //--------------------------------------------------------------------------------------------------315 //--------------------------------------------------------------------------------------------------319 //--------------------------------------------------------------------------------------------------326 //--------------------------------------------------------------------------------------------------337 //--------------------------------------------------------------------------------------------------344 //--------------------------------------------------------------------------------------------------348 //--------------------------------------------------------------------------------------------------354 //--------------------------------------------------------------------------------------------------362 //--------------------------------------------------------------------------------------------------368 //--------------------------------------------------------------------------------------------------374 //--------------------------------------------------------------------------------------------------380 //--------------------------------------------------------------------------------------------------390 //--------------------------------------------------------------------------------------------------403 //--------------------------------------------------------------------------------------------------405 * Get the index for the previous system in the chain, using the current system as a starting point.410 //--------------------------------------------------------------------------------------------------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:240Applying update(i.e. installation/removal operation going on).Definition: le_update_interface.h:234le_result_t le_update_Start(int fd)struct le_update_ProgressHandler * le_update_ProgressHandlerRef_tDefinition: le_update_interface.h:276Something failed while doing update. Check logs.Definition: le_update_interface.h:262Successfully completed all update task.Definition: le_update_interface.h:237void(* le_update_ProgressHandlerFunc_t)(le_update_State_t updateState, uint32_t percentDone, void *contextPtr)Definition: le_update_interface.h:293void 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:265void 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:259