le_appCtrl_interface.h
Go to the documentation of this file.
73 * - le_appCtrl_GetRef() can be used to get a reference to an app. This reference can then be used76 * - le_appCtrl_SetRun() can be used to set or clear the "run" flag for a given process in the app.81 * - le_appCtrl_SetDebug() can be used to set or clear the "debug" flag for a given process in the99 * - le_appCtrl_ReleaseRef() releases the reference returned by le_appCtrl_GetRef() and resets all105 * starts. If the process is started by the Supervisor when the app starts, then synchoronization107 * "Trace Attach Handler" call-back for the app before starting it. When the Supervisor starts an109 * container, as usual, and for each app process it starts, it will <c>fork()</c> a child process,184 * app's run-time container. le_appCtrl_SetDevicePerm() can be used to set the access permissions227 //--------------------------------------------------------------------------------------------------231 //--------------------------------------------------------------------------------------------------234 //--------------------------------------------------------------------------------------------------237 * Connect the current client thread to the service providing this API. Block until the service is240 * For each thread that wants to use this API, either ConnectService or TryConnectService must be241 * called before any other functions in this API. Normally, ConnectService is automatically called246 //--------------------------------------------------------------------------------------------------252 //--------------------------------------------------------------------------------------------------255 * Try to connect the current client thread to the service providing this API. Return with an error258 * For each thread that wants to use this API, either ConnectService or TryConnectService must be259 * called before any other functions in this API. Normally, ConnectService is automatically called268 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).271 //--------------------------------------------------------------------------------------------------277 //--------------------------------------------------------------------------------------------------281 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants284 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------297 * longer a connection to the service, and the functions in this API can't be used. For details, see302 //--------------------------------------------------------------------------------------------------309 //--------------------------------------------------------------------------------------------------312 //--------------------------------------------------------------------------------------------------315 //--------------------------------------------------------------------------------------------------320 //--------------------------------------------------------------------------------------------------323 //--------------------------------------------------------------------------------------------------327 //--------------------------------------------------------------------------------------------------330 //--------------------------------------------------------------------------------------------------338 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------350 //--------------------------------------------------------------------------------------------------357 //--------------------------------------------------------------------------------------------------363 //--------------------------------------------------------------------------------------------------374 //--------------------------------------------------------------------------------------------------380 //--------------------------------------------------------------------------------------------------391 //--------------------------------------------------------------------------------------------------405 //--------------------------------------------------------------------------------------------------414 //--------------------------------------------------------------------------------------------------427 //--------------------------------------------------------------------------------------------------438 //--------------------------------------------------------------------------------------------------444 //--------------------------------------------------------------------------------------------------455 //--------------------------------------------------------------------------------------------------459 //--------------------------------------------------------------------------------------------------466 //--------------------------------------------------------------------------------------------------474 //--------------------------------------------------------------------------------------------------483 //--------------------------------------------------------------------------------------------------493 //--------------------------------------------------------------------------------------------------500 //--------------------------------------------------------------------------------------------------508 //--------------------------------------------------------------------------------------------------void le_appCtrl_SetDebug(le_appCtrl_AppRef_t appRef, const char *LE_NONNULL procName, bool debug)le_appCtrl_TraceAttachHandlerRef_t le_appCtrl_AddTraceAttachHandler(le_appCtrl_AppRef_t appRef, le_appCtrl_TraceAttachHandlerFunc_t attachToPidPtr, void *contextPtr)void(* le_appCtrl_DisconnectHandler_t)(void *)Definition: le_appCtrl_interface.h:232void le_appCtrl_SetRun(le_appCtrl_AppRef_t appRef, const char *LE_NONNULL procName, bool run)le_result_t le_appCtrl_TryConnectService(void)void le_appCtrl_ReleaseRef(le_appCtrl_AppRef_t appRef)LE_FULL_API void le_appCtrl_SetServerDisconnectHandler(le_appCtrl_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_appCtrl_Stop(const char *LE_NONNULL appName)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)le_appCtrl_AppRef_t le_appCtrl_GetRef(const char *LE_NONNULL appName)void le_appCtrl_RemoveTraceAttachHandler(le_appCtrl_TraceAttachHandlerRef_t handlerRef)le_result_t le_appCtrl_Start(const char *LE_NONNULL appName)void le_appCtrl_ConnectService(void)le_result_t le_appCtrl_Import(le_appCtrl_AppRef_t appRef, const char *LE_NONNULL path)void le_appCtrl_DisconnectService(void)