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.164 //--------------------------------------------------------------------------------------------------168 //--------------------------------------------------------------------------------------------------171 //--------------------------------------------------------------------------------------------------174 * Connect the current client thread to the service providing this API. Block until the service is177 * For each thread that wants to use this API, either ConnectService or TryConnectService must be178 * called before any other functions in this API. Normally, ConnectService is automatically called183 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------192 * Try to connect the current client thread to the service providing this API. Return with an error195 * For each thread that wants to use this API, either ConnectService or TryConnectService must be196 * called before any other functions in this API. Normally, ConnectService is automatically called205 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).208 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------218 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants221 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------234 * longer a connection to the service, and the functions in this API can't be used. For details, see239 //--------------------------------------------------------------------------------------------------246 //--------------------------------------------------------------------------------------------------260 //--------------------------------------------------------------------------------------------------263 //--------------------------------------------------------------------------------------------------270 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------277 //--------------------------------------------------------------------------------------------------280 //--------------------------------------------------------------------------------------------------284 //--------------------------------------------------------------------------------------------------287 //--------------------------------------------------------------------------------------------------293 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------306 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------331 //--------------------------------------------------------------------------------------------------340 //--------------------------------------------------------------------------------------------------346 //--------------------------------------------------------------------------------------------------350 //--------------------------------------------------------------------------------------------------356 //--------------------------------------------------------------------------------------------------364 //--------------------------------------------------------------------------------------------------370 //--------------------------------------------------------------------------------------------------376 //--------------------------------------------------------------------------------------------------382 //--------------------------------------------------------------------------------------------------392 //--------------------------------------------------------------------------------------------------403 //--------------------------------------------------------------------------------------------------405 * Get the index for the previous system in the chain, using the current system as a starting point.410 //--------------------------------------------------------------------------------------------------LE_FULL_API void le_update_SetServerDisconnectHandler(le_update_DisconnectHandler_t disconnectHandler, void *contextPtr)int32_t le_update_GetCurrentSysIndex(void)le_result_t le_update_Start(int fd)int32_t le_update_GetPreviousSystemIndex(int32_t systemIndex)le_update_ProgressHandlerRef_t le_update_AddProgressHandler(le_update_ProgressHandlerFunc_t handlerPtr, void *contextPtr)le_result_t le_update_Install(void)le_update_ErrorCode_t le_update_GetErrorCode(void)void le_update_End(void)void(* le_update_DisconnectHandler_t)(void *)Definition: le_update_interface.h:169void le_update_RemoveProgressHandler(le_update_ProgressHandlerRef_t handlerRef)le_result_t le_update_GetSystemHash(int32_t systemIndex, char *hashStr, size_t hashStrSize)le_result_t le_update_TryConnectService(void)void le_update_ConnectService(void)void(* le_update_ProgressHandlerFunc_t)(le_update_State_t updateState, uint32_t percentDone, void *contextPtr)Definition: le_update_common.h:98struct le_update_ProgressHandler * le_update_ProgressHandlerRef_tDefinition: le_update_common.h:89void le_update_DisconnectService(void)