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 permissions231 //--------------------------------------------------------------------------------------------------235 //--------------------------------------------------------------------------------------------------238 //--------------------------------------------------------------------------------------------------241 * Connect the current client thread to the service providing this API. Block until the service is244 * For each thread that wants to use this API, either ConnectService or TryConnectService must be245 * called before any other functions in this API. Normally, ConnectService is automatically called250 //--------------------------------------------------------------------------------------------------256 //--------------------------------------------------------------------------------------------------259 * Try to connect the current client thread to the service providing this API. Return with an error262 * For each thread that wants to use this API, either ConnectService or TryConnectService must be263 * called before any other functions in this API. Normally, ConnectService is automatically called272 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).275 //--------------------------------------------------------------------------------------------------281 //--------------------------------------------------------------------------------------------------285 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants288 //--------------------------------------------------------------------------------------------------295 //--------------------------------------------------------------------------------------------------301 * longer a connection to the service, and the functions in this API can't be used. For details, see306 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------316 //--------------------------------------------------------------------------------------------------319 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------327 //--------------------------------------------------------------------------------------------------331 //--------------------------------------------------------------------------------------------------334 //--------------------------------------------------------------------------------------------------342 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------354 //--------------------------------------------------------------------------------------------------361 //--------------------------------------------------------------------------------------------------367 //--------------------------------------------------------------------------------------------------378 //--------------------------------------------------------------------------------------------------384 //--------------------------------------------------------------------------------------------------395 //--------------------------------------------------------------------------------------------------409 //--------------------------------------------------------------------------------------------------418 //--------------------------------------------------------------------------------------------------431 //--------------------------------------------------------------------------------------------------442 //--------------------------------------------------------------------------------------------------448 //--------------------------------------------------------------------------------------------------459 //--------------------------------------------------------------------------------------------------463 //--------------------------------------------------------------------------------------------------470 //--------------------------------------------------------------------------------------------------478 //--------------------------------------------------------------------------------------------------487 //--------------------------------------------------------------------------------------------------497 //--------------------------------------------------------------------------------------------------504 //--------------------------------------------------------------------------------------------------512 //--------------------------------------------------------------------------------------------------LE_FULL_API void le_appCtrl_SetServerDisconnectHandler(le_appCtrl_DisconnectHandler_t disconnectHandler, void *contextPtr)void(* le_appCtrl_DisconnectHandler_t)(void *)Definition: le_appCtrl_interface.h:236le_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_result_t le_appCtrl_TryConnectService(void)le_appCtrl_AppRef_t le_appCtrl_GetRef(const char *LE_NONNULL appName)void le_appCtrl_SetRun(le_appCtrl_AppRef_t appRef, const char *LE_NONNULL procName, bool run)void le_appCtrl_ReleaseRef(le_appCtrl_AppRef_t appRef)le_appCtrl_TraceAttachHandlerRef_t le_appCtrl_AddTraceAttachHandler(le_appCtrl_AppRef_t appRef, le_appCtrl_TraceAttachHandlerFunc_t attachToPidPtr, void *contextPtr)void(* le_appCtrl_TraceAttachHandlerFunc_t)(le_appCtrl_AppRef_t appRef, int32_t pid, const char *LE_NONNULL procName, void *contextPtr)Definition: le_appCtrl_common.h:53le_result_t le_appCtrl_Import(le_appCtrl_AppRef_t appRef, const char *LE_NONNULL path)void le_appCtrl_RemoveTraceAttachHandler(le_appCtrl_TraceAttachHandlerRef_t handlerRef)le_result_t le_appCtrl_Stop(const char *LE_NONNULL appName)void le_appCtrl_ConnectService(void)struct le_appCtrl_TraceAttachHandler * le_appCtrl_TraceAttachHandlerRef_tDefinition: le_appCtrl_common.h:43void le_appCtrl_DisconnectService(void)void le_appCtrl_SetDebug(le_appCtrl_AppRef_t appRef, const char *LE_NONNULL procName, bool debug)le_result_t le_appCtrl_Start(const char *LE_NONNULL appName)