le_appInfo_interface.h
Go to the documentation of this file.
52 //--------------------------------------------------------------------------------------------------56 //--------------------------------------------------------------------------------------------------59 //--------------------------------------------------------------------------------------------------62 * Connect the current client thread to the service providing this API. Block until the service is66 * called before any other functions in this API. Normally, ConnectService is automatically called71 //--------------------------------------------------------------------------------------------------77 //--------------------------------------------------------------------------------------------------80 * Try to connect the current client thread to the service providing this API. Return with an error84 * called before any other functions in this API. Normally, ConnectService is automatically called93 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).96 //--------------------------------------------------------------------------------------------------102 //--------------------------------------------------------------------------------------------------106 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants109 //--------------------------------------------------------------------------------------------------116 //--------------------------------------------------------------------------------------------------122 * longer a connection to the service, and the functions in this API can't be used. For details, see127 //--------------------------------------------------------------------------------------------------134 //--------------------------------------------------------------------------------------------------138 //--------------------------------------------------------------------------------------------------141 //--------------------------------------------------------------------------------------------------145 //--------------------------------------------------------------------------------------------------148 //--------------------------------------------------------------------------------------------------155 * @note If the application name pointer is null or if its string is empty or of bad format it is a158 //--------------------------------------------------------------------------------------------------165 //--------------------------------------------------------------------------------------------------173 * @note If the application or process names pointers are null or if their strings are empty or of176 //--------------------------------------------------------------------------------------------------185 //--------------------------------------------------------------------------------------------------195 //--------------------------------------------------------------------------------------------------206 //--------------------------------------------------------------------------------------------------208 * Gets the application hash as a hexidecimal string. The application hash is a unique hash of the217 * @note If the application name pointer is null or if its string is empty or of bad format it is a220 //--------------------------------------------------------------------------------------------------le_result_t le_appInfo_GetHash(const char *LE_NONNULL appName, char *hashStr, size_t hashStrSize)void le_appInfo_ConnectService(void)le_appInfo_ProcState_t le_appInfo_GetProcState(const char *LE_NONNULL appName, const char *LE_NONNULL procName)void le_appInfo_DisconnectService(void)le_appInfo_State_t le_appInfo_GetState(const char *LE_NONNULL appName)void(* le_appInfo_DisconnectHandler_t)(void *)Definition: le_appInfo_interface.h:57le_result_t le_appInfo_TryConnectService(void)LE_FULL_API void le_appInfo_SetServerDisconnectHandler(le_appInfo_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_appInfo_GetName(int32_t pid, char *appName, size_t appNameSize)