Choco OS  V.0.16.9.0
Join to the chocolate world
oc_serviceman.h
Go to the documentation of this file.
1 
28 #ifndef SYSTEM_CORE_INC_KERNEL_OC_SERVICEMAN_H_
29 #define SYSTEM_CORE_INC_KERNEL_OC_SERVICEMAN_H_
30 
31 #include <oc_errors.h>
32 #include <oc_service.h>
33 
39 #define _________________________________________PROTOTYPES_SECTION_________________________________________________________________________
40 
41 extern oC_ErrorCode_t oC_ServiceMan_TurnOn ( void );
42 extern oC_ErrorCode_t oC_ServiceMan_TurnOff ( void );
43 extern void oC_ServiceMan_StartAllPossible( void );
44 extern void oC_ServiceMan_StopAllPossible ( void );
45 extern bool oC_ServiceMan_IsServiceActive ( const char * Name );
46 extern oC_ErrorCode_t oC_ServiceMan_StartService ( const char * Name );
47 extern oC_ErrorCode_t oC_ServiceMan_StopService ( const char * Name );
48 extern oC_Service_t oC_ServiceMan_GetService ( const char * Name );
49 
50 #undef _________________________________________PROTOTYPES_SECTION_________________________________________________________________________
51 
52 #endif /* SYSTEM_CORE_INC_KERNEL_OC_SERVICEMAN_H_ */
oC_ErrorCode_t oC_ServiceMan_TurnOff(void)
turns off Service Manager
bool oC_ServiceMan_IsServiceActive(const char *Name)
checks if the given service is activated
oC_ErrorCode_t oC_ServiceMan_StopService(const char *Name)
stops the given service
oC_ErrorCode_t oC_ServiceMan_StartService(const char *Name)
starts the given service
oC_ErrorCode_t oC_ServiceMan_TurnOn(void)
turns on Service Manager
oC_Service_t oC_ServiceMan_GetService(const char *Name)
returns service with the given name
interface for handling services
void oC_ServiceMan_StartAllPossible(void)
starts all services
void oC_ServiceMan_StopAllPossible(void)
stops all services