Choco OS
V.0.16.9.0
Join to the chocolate world
|
Source of service manager. More...
#include <oc_service.h>
#include <oc_serviceman.h>
#include <oc_services_cfg.h>
#include <oc_intman.h>
Go to the source code of this file.
Data Structures | |
struct | ServiceData_t |
Functions | |
ServiceData_t * | ServiceData_New (const oC_Service_Registration_t *Registration) |
allocates memory for a new service data | |
static bool | ServiceData_Delete (ServiceData_t *ServiceData) |
deletes service data | |
static ServiceData_t * | GetServiceData (const char *Name) |
searches for a service data | |
static oC_ErrorCode_t | StartService (ServiceData_t *ServiceData) |
starts service | |
static oC_ErrorCode_t | StopService (ServiceData_t *ServiceData) |
stops service | |
oC_ErrorCode_t | oC_ServiceMan_TurnOn (void) |
turns on Service Manager | |
oC_ErrorCode_t | oC_ServiceMan_TurnOff (void) |
turns off Service Manager | |
void | oC_ServiceMan_StartAllPossible (void) |
starts all services | |
void | oC_ServiceMan_StopAllPossible (void) |
stops all services | |
bool | oC_ServiceMan_IsServiceActive (const char *Name) |
checks if the given service is activated | |
oC_ErrorCode_t | oC_ServiceMan_StartService (const char *Name) |
starts the given service | |
oC_ErrorCode_t | oC_ServiceMan_StopService (const char *Name) |
stops the given service | |
oC_Service_t | oC_ServiceMan_GetService (const char *Name) |
returns service with the given name | |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file oc_serviceman.c.