aboutsummaryrefslogtreecommitdiff
path: root/lib/init
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/init
parent9e7478397a6f3c7bc38be52268e805d5b094eeb2 (diff)
Add start/stop commands to init socket
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'lib/init')
-rw-r--r--lib/init/init_socket_send_request.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/init/init_socket_send_request.c b/lib/init/init_socket_send_request.c
index e9c7cb9..53b31f6 100644
--- a/lib/init/init_socket_send_request.c
+++ b/lib/init/init_socket_send_request.c
@@ -2,6 +2,7 @@
#include <unistd.h>
#include <string.h>
#include <stdarg.h>
+#include <endian.h>
#include <stdio.h>
#include <errno.h>
@@ -21,6 +22,10 @@ int init_socket_send_request(int fd, E_INIT_REQUEST rq, ...)
case EIR_STATUS:
request.arg.status.filter = va_arg(ap, E_SERVICE_STATE);
break;
+ case EIR_START:
+ case EIR_STOP:
+ request.arg.startstop.id = htobe32(va_arg(ap, int));
+ break;
default:
break;
}