Refactor: move advanced service methods from svc.c --> service.c

This patch refactors svc.c into two files: svc.c now as a low-level
svc_t API and service.c for the more advanced rest.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-06-07 03:23:46 +02:00
1 parent 8e9a5ee678
commit 97a48ec5fb
12 files changed
+1024 -861

No files matched your search

+2 -1
View File
@@ -33,6 +33,7 @@
#include "../plugin.h"
#include "../sig.h"
#include "../finit.h"
#include "../service.h"
static void parse(void *arg, int fd, int events);
@@ -102,7 +103,7 @@ static void parse(void *UNUSED(arg), int fd, int UNUSED(events))
case '1'...'5':
case '7'...'9':
_d("Setting new runlevel %c", rq.runlevel);
svc_runlevel(rq.runlevel - '0');
service_runlevel(rq.runlevel - '0');
break;
case '6':