From ba1270008021470b2e451bce8e75053e0a00f662 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 28 Mar 2019 14:15:39 +0100 Subject: Add start/stop commands to init socket Signed-off-by: David Oberhollenzer --- lib/init/init_socket_send_request.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/init/init_socket_send_request.c') 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 #include #include +#include #include #include @@ -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; } -- cgit v1.2.3