le_appCtrl_interface.h
Go to the documentation of this file.
17 * API for controlling the applications. This API should only be made available to privileged users.80 //--------------------------------------------------------------------------------------------------84 //--------------------------------------------------------------------------------------------------87 //--------------------------------------------------------------------------------------------------90 * Connect the current client thread to the service providing this API. Block until the service is94 * called before any other functions in this API. Normally, ConnectService is automatically called99 //--------------------------------------------------------------------------------------------------105 //--------------------------------------------------------------------------------------------------108 * Try to connect the current client thread to the service providing this API. Return with an error111 * For each thread that wants to use this API, either ConnectService or TryConnectService must be112 * called before any other functions in this API. Normally, ConnectService is automatically called121 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).124 //--------------------------------------------------------------------------------------------------130 //--------------------------------------------------------------------------------------------------134 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants137 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------150 * longer a connection to the service, and the functions in this API can't be used. For details, see155 //--------------------------------------------------------------------------------------------------162 //--------------------------------------------------------------------------------------------------165 //--------------------------------------------------------------------------------------------------169 //--------------------------------------------------------------------------------------------------173 //--------------------------------------------------------------------------------------------------177 //--------------------------------------------------------------------------------------------------182 //--------------------------------------------------------------------------------------------------184 (195 //--------------------------------------------------------------------------------------------------203 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------222 //--------------------------------------------------------------------------------------------------228 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------254 //--------------------------------------------------------------------------------------------------264 //--------------------------------------------------------------------------------------------------277 //--------------------------------------------------------------------------------------------------289 //--------------------------------------------------------------------------------------------------295 //--------------------------------------------------------------------------------------------------306 //--------------------------------------------------------------------------------------------------310 //--------------------------------------------------------------------------------------------------317 //--------------------------------------------------------------------------------------------------325 //--------------------------------------------------------------------------------------------------334 //--------------------------------------------------------------------------------------------------344 //--------------------------------------------------------------------------------------------------352 //--------------------------------------------------------------------------------------------------360 //--------------------------------------------------------------------------------------------------void(* le_appCtrl_TraceAttachHandlerFunc_t)(le_appCtrl_AppRef_t appRef, int32_t pid, const char *procName, void *contextPtr)Definition: le_appCtrl_interface.h:184void le_appCtrl_RemoveTraceAttachHandler(le_appCtrl_TraceAttachHandlerRef_t handlerRef)le_result_t le_appCtrl_Stop(const char *appName)void le_appCtrl_DisconnectService(void)struct le_appCtrl_TraceAttachHandler * le_appCtrl_TraceAttachHandlerRef_tDefinition: le_appCtrl_interface.h:174le_appCtrl_TraceAttachHandlerRef_t le_appCtrl_AddTraceAttachHandler(le_appCtrl_AppRef_t appRef, le_appCtrl_TraceAttachHandlerFunc_t attachToPidPtr, void *contextPtr)le_result_t le_appCtrl_Start(const char *appName)le_result_t le_appCtrl_TryConnectService(void)le_appCtrl_AppRef_t le_appCtrl_GetRef(const char *appName)le_result_t le_appCtrl_SetDevicePerm(le_appCtrl_AppRef_t appRef, const char *path, const char *permissions)void(* le_appCtrl_DisconnectHandler_t)(void *)Definition: le_appCtrl_interface.h:85void le_appCtrl_SetRun(le_appCtrl_AppRef_t appRef, const char *procName, bool run)void le_appCtrl_ReleaseRef(le_appCtrl_AppRef_t appRef)le_result_t le_appCtrl_Import(le_appCtrl_AppRef_t appRef, const char *path)void le_appCtrl_ConnectService(void)void le_appCtrl_SetServerDisconnectHandler(le_appCtrl_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_appCtrl_TraceUnblock(le_appCtrl_AppRef_t appRef, int32_t pid)