le_appProc_interface.h
Go to the documentation of this file.
43 //--------------------------------------------------------------------------------------------------46 * Connect the current client thread to the service providing this API. Block until the service is50 * called before any other functions in this API. Normally, ConnectService is automatically called55 //--------------------------------------------------------------------------------------------------61 //--------------------------------------------------------------------------------------------------64 * Try to connect the current client thread to the service providing this API. Return with an error68 * called before any other functions in this API. Normally, ConnectService is automatically called75 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.76 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).79 //--------------------------------------------------------------------------------------------------85 //--------------------------------------------------------------------------------------------------91 * longer a connection to the service, and the functions in this API can't be used. For details, see96 //--------------------------------------------------------------------------------------------------103 //--------------------------------------------------------------------------------------------------107 //--------------------------------------------------------------------------------------------------111 //--------------------------------------------------------------------------------------------------115 //--------------------------------------------------------------------------------------------------136 //--------------------------------------------------------------------------------------------------140 //--------------------------------------------------------------------------------------------------144 //--------------------------------------------------------------------------------------------------152 //--------------------------------------------------------------------------------------------------154 (159 //--------------------------------------------------------------------------------------------------169 * Parameters can be overridden by the other functions in this API such as AddArg(), SetPriority(),183 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------222 //--------------------------------------------------------------------------------------------------232 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------250 //--------------------------------------------------------------------------------------------------256 //--------------------------------------------------------------------------------------------------269 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------280 //--------------------------------------------------------------------------------------------------284 * If the application process is a configured process adding any argument means no arguments from287 * Adding an empty argument validates the argument list but does not acutally add an argument. This292 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------304 * Deletes and invalidates the cmd-line arguments to a process and use the configured arguments if307 //--------------------------------------------------------------------------------------------------314 //--------------------------------------------------------------------------------------------------322 //--------------------------------------------------------------------------------------------------332 //--------------------------------------------------------------------------------------------------334 * Clears the application process's priority and use either the configured priority or the default.336 //--------------------------------------------------------------------------------------------------343 //--------------------------------------------------------------------------------------------------347 //--------------------------------------------------------------------------------------------------357 //--------------------------------------------------------------------------------------------------359 * Clears the application process's fault action and use either the configured fault action or the362 //--------------------------------------------------------------------------------------------------369 //--------------------------------------------------------------------------------------------------371 * Starts the application process. If the application was not running this function will start it378 //--------------------------------------------------------------------------------------------------385 //--------------------------------------------------------------------------------------------------389 //--------------------------------------------------------------------------------------------------void le_appProc_ClearPriority(le_appProc_RefRef_t appProcRef)void le_appProc_SetStdOut(le_appProc_RefRef_t appProcRef, int stdOutFd)void le_appProc_ClearFaultAction(le_appProc_RefRef_t appProcRef)void le_appProc_SetFaultAction(le_appProc_RefRef_t appProcRef, le_appProc_FaultAction_t action)void le_appProc_ConnectService(void)le_result_t le_appProc_TryConnectService(void)The application should be restarted.Definition: le_appProc_interface.h:124void le_appProc_SetPriority(le_appProc_RefRef_t appProcRef, const char *priority)void le_appProc_AddArg(le_appProc_RefRef_t appProcRef, const char *arg)void le_appProc_DisconnectService(void)void le_appProc_RemoveStopHandler(le_appProc_StopHandlerRef_t addHandlerRef)void le_appProc_Delete(le_appProc_RefRef_t appProcRef)A fault occured but no further action is required.Definition: le_appProc_interface.h:118void le_appProc_SetStdErr(le_appProc_RefRef_t appProcRef, int stdErrFd)struct le_appProc_StopHandler * le_appProc_StopHandlerRef_tDefinition: le_appProc_interface.h:141The application should be terminated.Definition: le_appProc_interface.h:127void(* le_appProc_StopHandlerFunc_t)(int32_t exitCode, void *contextPtr)Definition: le_appProc_interface.h:154void le_appProc_SetStdIn(le_appProc_RefRef_t appProcRef, int stdInFd)le_result_t le_appProc_Start(le_appProc_RefRef_t appProcRef)le_appProc_StopHandlerRef_t le_appProc_AddStopHandler(le_appProc_RefRef_t appProcRef, le_appProc_StopHandlerFunc_t handlerPtr, void *contextPtr)void le_appProc_ClearArgs(le_appProc_RefRef_t appProcRef)struct le_appProc_Ref * le_appProc_RefRef_tDefinition: le_appProc_interface.h:108le_appProc_RefRef_t le_appProc_Create(const char *appName, const char *procName, const char *execPath)The process should be restarted.Definition: le_appProc_interface.h:121