le_appInfo_interface.h
Go to the documentation of this file.
51 //--------------------------------------------------------------------------------------------------55 //--------------------------------------------------------------------------------------------------58 //--------------------------------------------------------------------------------------------------61 * Connect the current client thread to the service providing this API. Block until the service is65 * called before any other functions in this API. Normally, ConnectService is automatically called70 //--------------------------------------------------------------------------------------------------76 //--------------------------------------------------------------------------------------------------79 * Try to connect the current client thread to the service providing this API. Return with an error83 * called before any other functions in this API. Normally, ConnectService is automatically called92 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).95 //--------------------------------------------------------------------------------------------------101 //--------------------------------------------------------------------------------------------------105 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants108 //--------------------------------------------------------------------------------------------------115 //--------------------------------------------------------------------------------------------------121 * longer a connection to the service, and the functions in this API can't be used. For details, see126 //--------------------------------------------------------------------------------------------------133 //--------------------------------------------------------------------------------------------------137 //--------------------------------------------------------------------------------------------------140 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------155 //--------------------------------------------------------------------------------------------------159 //--------------------------------------------------------------------------------------------------170 //--------------------------------------------------------------------------------------------------177 * @note If the application name pointer is null or if its string is empty or of bad format it is a180 //--------------------------------------------------------------------------------------------------187 //--------------------------------------------------------------------------------------------------195 * @note If the application or process names pointers are null or if their strings are empty or of198 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------217 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------230 * Gets the application hash as a hexidecimal string. The application hash is a unique hash of the239 * @note If the application name pointer is null or if its string is empty or of bad format it is a242 //--------------------------------------------------------------------------------------------------le_result_t le_appInfo_GetHash(const char *LE_NONNULL appName, char *hashStr, size_t hashStrSize)void le_appInfo_DisconnectService(void)Application has been stopped or never started.Definition: le_appInfo_interface.h:147le_appInfo_State_t le_appInfo_GetState(const char *LE_NONNULL appName)le_appInfo_ProcState_t le_appInfo_GetProcState(const char *LE_NONNULL appName, const char *LE_NONNULL procName)void le_appInfo_ConnectService(void)void(* le_appInfo_DisconnectHandler_t)(void *)Definition: le_appInfo_interface.h:56void le_appInfo_SetServerDisconnectHandler(le_appInfo_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_appInfo_GetName(int32_t pid, char *appName, size_t appNameSize)Process has been stopped or never started.Definition: le_appInfo_interface.h:162le_result_t le_appInfo_TryConnectService(void)