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.95 * - le_appCtrl_ReleaseRef() releases the reference returned by le_appCtrl_GetRef() and resets all101 * starts. If the process is started by the Supervisor when the app starts, then synchoronization103 * "Trace Attach Handler" call-back for the app before starting it. When the Supervisor starts an105 * container, as usual, and for each app process it starts, it will <c>fork()</c> a child process,180 * app's run-time container. le_appCtrl_SetDevicePerm() can be used to set the access permissions222 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------229 //--------------------------------------------------------------------------------------------------232 * Connect the current client thread to the service providing this API. Block until the service is235 * For each thread that wants to use this API, either ConnectService or TryConnectService must be236 * called before any other functions in this API. Normally, ConnectService is automatically called241 //--------------------------------------------------------------------------------------------------247 //--------------------------------------------------------------------------------------------------250 * Try to connect the current client thread to the service providing this API. Return with an error253 * For each thread that wants to use this API, either ConnectService or TryConnectService must be254 * called before any other functions in this API. Normally, ConnectService is automatically called263 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).266 //--------------------------------------------------------------------------------------------------272 //--------------------------------------------------------------------------------------------------276 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants279 //--------------------------------------------------------------------------------------------------286 //--------------------------------------------------------------------------------------------------292 * longer a connection to the service, and the functions in this API can't be used. For details, see297 //--------------------------------------------------------------------------------------------------304 //--------------------------------------------------------------------------------------------------307 //--------------------------------------------------------------------------------------------------311 //--------------------------------------------------------------------------------------------------315 //--------------------------------------------------------------------------------------------------319 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------326 (337 //--------------------------------------------------------------------------------------------------345 //--------------------------------------------------------------------------------------------------352 //--------------------------------------------------------------------------------------------------357 //--------------------------------------------------------------------------------------------------364 //--------------------------------------------------------------------------------------------------370 //--------------------------------------------------------------------------------------------------381 //--------------------------------------------------------------------------------------------------395 //--------------------------------------------------------------------------------------------------404 //--------------------------------------------------------------------------------------------------417 //--------------------------------------------------------------------------------------------------428 //--------------------------------------------------------------------------------------------------434 //--------------------------------------------------------------------------------------------------445 //--------------------------------------------------------------------------------------------------449 //--------------------------------------------------------------------------------------------------456 //--------------------------------------------------------------------------------------------------464 //--------------------------------------------------------------------------------------------------473 //--------------------------------------------------------------------------------------------------483 //--------------------------------------------------------------------------------------------------490 //--------------------------------------------------------------------------------------------------498 //--------------------------------------------------------------------------------------------------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:316le_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:227void 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:326le_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)