summaryrefslogtreecommitdiffstats
path: root/src/service/util/serviceutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/service/util/serviceutil.h')
-rw-r--r--src/service/util/serviceutil.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/service/util/serviceutil.h b/src/service/util/serviceutil.h
index a4a9d11..74f4786 100644
--- a/src/service/util/serviceutil.h
+++ b/src/service/util/serviceutil.h
@@ -36,13 +36,15 @@
#define ARRAY_SIZE(name) (sizeof(name) / sizeof(name[0]))
+enum ServiceEnabledDefault { ENABLED = 2, DISABLED = 3, NOT_APPICABLE = 5};
+
struct _Service {
char *svSystemCCname;
char *svSystemname;
char *svCCname;
char *svName; /* "rsyslog", "httpd", ... */
char *svStatus; /* "Stopped", "OK" */
- int *svEnabledDefault; /* 5 - "Not Applicable", 2 - "Enabled", 3 - "Disabled" */
+ enum ServiceEnabledDefault svEnabledDefault;
int svStarted; /* 0, 1 */
int pid; /* PID */
};
@@ -62,6 +64,6 @@ void *Service_Begin_Enum(const char *service);
int Service_Next_Enum(void *handle, Service* svc, const char *service);
void Service_End_Enum(void *handle);
-int Service_Operation(const char *service, const char *method, char *result, int resultlen);
+unsigned int Service_Operation(const char *service, const char *method, char *result, int resultlen);
#endif