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 //--------------------------------------------------------------------------------------------------210 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------221 //--------------------------------------------------------------------------------------------------227 //--------------------------------------------------------------------------------------------------238 //--------------------------------------------------------------------------------------------------252 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------274 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------306 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------321 //--------------------------------------------------------------------------------------------------330 //--------------------------------------------------------------------------------------------------340 //--------------------------------------------------------------------------------------------------347 //--------------------------------------------------------------------------------------------------355 //--------------------------------------------------------------------------------------------------le_result_t le_appCtrl_Start(const char *LE_NONNULL appName)void le_appCtrl_RemoveTraceAttachHandler(le_appCtrl_TraceAttachHandlerRef_t handlerRef)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_Import(le_appCtrl_AppRef_t appRef, const char *LE_NONNULL path)le_result_t le_appCtrl_Stop(const char *LE_NONNULL appName)le_result_t le_appCtrl_TryConnectService(void)void(* le_appCtrl_DisconnectHandler_t)(void *)Definition: le_appCtrl_interface.h:85void le_appCtrl_SetRun(le_appCtrl_AppRef_t appRef, const char *LE_NONNULL procName, bool run)void le_appCtrl_ReleaseRef(le_appCtrl_AppRef_t appRef)void le_appCtrl_ConnectService(void)void(* le_appCtrl_TraceAttachHandlerFunc_t)(le_appCtrl_AppRef_t appRef, int32_t pid, const char *LE_NONNULL procName, void *contextPtr)Definition: le_appCtrl_interface.h:184le_appCtrl_AppRef_t le_appCtrl_GetRef(const char *LE_NONNULL appName)void le_appCtrl_SetServerDisconnectHandler(le_appCtrl_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_appCtrl_SetDevicePerm(le_appCtrl_AppRef_t appRef, const char *LE_NONNULL path, const char *LE_NONNULL permissions)void le_appCtrl_TraceUnblock(le_appCtrl_AppRef_t appRef, int32_t pid)