aboutsummaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-03-28 14:15:39 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2019-03-28 15:32:10 +0100
commitba1270008021470b2e451bce8e75053e0a00f662 (patch)
tree1a33a447af83e276c7642b73f9c1bcd9fde9416b /lib/include
parent9e7478397a6f3c7bc38be52268e805d5b094eeb2 (diff)
Add start/stop commands to init socket
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/initsock.h6
-rw-r--r--lib/include/service.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/include/initsock.h b/lib/include/initsock.h
index 10abe08..a687481 100644
--- a/lib/include/initsock.h
+++ b/lib/include/initsock.h
@@ -11,6 +11,8 @@
typedef enum {
EIR_STATUS = 0x00,
+ EIR_START = 0x01,
+ EIR_STOP = 0x02,
} E_INIT_REQUEST;
typedef enum {
@@ -30,6 +32,10 @@ typedef struct {
uint8_t filter;
uint8_t padd[3];
} status;
+
+ struct {
+ uint32_t id;
+ } startstop;
} arg;
} init_request_t;
diff --git a/lib/include/service.h b/lib/include/service.h
index 1ff5204..4e8f0b3 100644
--- a/lib/include/service.h
+++ b/lib/include/service.h
@@ -43,6 +43,7 @@ enum {
SVC_FLAG_TRUNCATE_OUT = 0x01,
SVC_FLAG_HAS_EXEC = 0x10,
+ SVC_FLAG_ADMIN_STOPPED = 0x20,
};
typedef struct service_t {