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.159 //--------------------------------------------------------------------------------------------------163 //--------------------------------------------------------------------------------------------------166 //--------------------------------------------------------------------------------------------------169 * Connect the current client thread to the service providing this API. Block until the service is172 * For each thread that wants to use this API, either ConnectService or TryConnectService must be173 * called before any other functions in this API. Normally, ConnectService is automatically called178 //--------------------------------------------------------------------------------------------------184 //--------------------------------------------------------------------------------------------------187 * Try to connect the current client thread to the service providing this API. Return with an error190 * For each thread that wants to use this API, either ConnectService or TryConnectService must be191 * called before any other functions in this API. Normally, ConnectService is automatically called200 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).203 //--------------------------------------------------------------------------------------------------209 //--------------------------------------------------------------------------------------------------213 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants216 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------229 * longer a connection to the service, and the functions in this API can't be used. For details, see234 //--------------------------------------------------------------------------------------------------241 //--------------------------------------------------------------------------------------------------255 //--------------------------------------------------------------------------------------------------272 //--------------------------------------------------------------------------------------------------279 //--------------------------------------------------------------------------------------------------294 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------306 //--------------------------------------------------------------------------------------------------308 (319 //--------------------------------------------------------------------------------------------------325 //--------------------------------------------------------------------------------------------------334 //--------------------------------------------------------------------------------------------------338 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------356 //--------------------------------------------------------------------------------------------------363 //--------------------------------------------------------------------------------------------------372 //--------------------------------------------------------------------------------------------------378 //--------------------------------------------------------------------------------------------------382 //--------------------------------------------------------------------------------------------------388 //--------------------------------------------------------------------------------------------------396 //--------------------------------------------------------------------------------------------------402 //--------------------------------------------------------------------------------------------------408 //--------------------------------------------------------------------------------------------------414 //--------------------------------------------------------------------------------------------------424 //--------------------------------------------------------------------------------------------------435 //--------------------------------------------------------------------------------------------------437 * Get the index for the previous system in the chain, using the current system as a starting point.442 //--------------------------------------------------------------------------------------------------void le_update_End(void)void(* le_update_DisconnectHandler_t)(void *)Definition: le_update_interface.h:164Update failed due to some error or deletion request.Definition: le_update_interface.h:266Applying update(i.e. installation/removal operation going on).Definition: le_update_interface.h:262void 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:299Something failed while doing update. Check logs.Definition: le_update_interface.h:286Successfully completed all update task.Definition: le_update_interface.h:264void(* le_update_ProgressHandlerFunc_t)(le_update_State_t updateState, uint32_t percentDone, void *contextPtr)Definition: le_update_interface.h:308le_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:260Error while doing security check of the package.Definition: le_update_interface.h:288void 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:284