le_appCtrl_interface.h
Go to the documentation of this file.
15 * API for controlling the applications. This API should only be made available to privileged users.78 //--------------------------------------------------------------------------------------------------81 * Connect the current client thread to the service providing this API. Block until the service is85 * called before any other functions in this API. Normally, ConnectService is automatically called90 //--------------------------------------------------------------------------------------------------96 //--------------------------------------------------------------------------------------------------99 * Try to connect the current client thread to the service providing this API. Return with an error102 * For each thread that wants to use this API, either ConnectService or TryConnectService must be103 * called before any other functions in this API. Normally, ConnectService is automatically called110 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.111 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).114 //--------------------------------------------------------------------------------------------------120 //--------------------------------------------------------------------------------------------------126 * longer a connection to the service, and the functions in this API can't be used. For details, see131 //--------------------------------------------------------------------------------------------------138 //--------------------------------------------------------------------------------------------------140 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------148 //--------------------------------------------------------------------------------------------------152 //--------------------------------------------------------------------------------------------------165 //--------------------------------------------------------------------------------------------------167 (174 //--------------------------------------------------------------------------------------------------182 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------200 //--------------------------------------------------------------------------------------------------206 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------250 //--------------------------------------------------------------------------------------------------263 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------282 //--------------------------------------------------------------------------------------------------286 //--------------------------------------------------------------------------------------------------293 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------308 //--------------------------------------------------------------------------------------------------318 //--------------------------------------------------------------------------------------------------325 //--------------------------------------------------------------------------------------------------333 //--------------------------------------------------------------------------------------------------void(* le_appCtrl_TraceAttachHandlerFunc_t)(le_appCtrl_AppRef_t appRef, int32_t pid, const char *procName, void *contextPtr)Definition: le_appCtrl_interface.h:167le_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:149le_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)void le_appCtrl_RemoveTraceAttachHandler(le_appCtrl_TraceAttachHandlerRef_t addHandlerRef)le_result_t le_appCtrl_SetDevicePerm(le_appCtrl_AppRef_t appRef, const char *path, const char *permissions)void 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_TraceUnblock(le_appCtrl_AppRef_t appRef, int32_t pid)