le_appInfo_interface.h
Go to the documentation of this file.
56 //--------------------------------------------------------------------------------------------------60 //--------------------------------------------------------------------------------------------------63 //--------------------------------------------------------------------------------------------------66 * Connect the current client thread to the service providing this API. Block until the service is70 * called before any other functions in this API. Normally, ConnectService is automatically called75 //--------------------------------------------------------------------------------------------------81 //--------------------------------------------------------------------------------------------------84 * Try to connect the current client thread to the service providing this API. Return with an error88 * called before any other functions in this API. Normally, ConnectService is automatically called97 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).100 //--------------------------------------------------------------------------------------------------106 //--------------------------------------------------------------------------------------------------110 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants113 //--------------------------------------------------------------------------------------------------120 //--------------------------------------------------------------------------------------------------126 * longer a connection to the service, and the functions in this API can't be used. For details, see131 //--------------------------------------------------------------------------------------------------138 //--------------------------------------------------------------------------------------------------142 //--------------------------------------------------------------------------------------------------145 //--------------------------------------------------------------------------------------------------149 //--------------------------------------------------------------------------------------------------152 //--------------------------------------------------------------------------------------------------159 * @note If the application name pointer is null or if its string is empty or of bad format it is a162 //--------------------------------------------------------------------------------------------------169 //--------------------------------------------------------------------------------------------------177 * @note If the application or process names pointers are null or if their strings are empty or of180 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------210 //--------------------------------------------------------------------------------------------------212 * Gets the application hash as a hexidecimal string. The application hash is a unique hash of the221 * @note If the application name pointer is null or if its string is empty or of bad format it is a224 //--------------------------------------------------------------------------------------------------le_result_t le_appInfo_GetName(int32_t pid, char *appName, size_t appNameSize)void le_appInfo_DisconnectService(void)le_appInfo_ProcState_t le_appInfo_GetProcState(const char *LE_NONNULL appName, const char *LE_NONNULL procName)le_result_t le_appInfo_GetHash(const char *LE_NONNULL appName, char *hashStr, size_t hashStrSize)le_appInfo_State_t le_appInfo_GetState(const char *LE_NONNULL appName)le_result_t le_appInfo_TryConnectService(void)void le_appInfo_ConnectService(void)LE_FULL_API void le_appInfo_SetServerDisconnectHandler(le_appInfo_DisconnectHandler_t disconnectHandler, void *contextPtr)void(* le_appInfo_DisconnectHandler_t)(void *)Definition: le_appInfo_interface.h:61