From d16d26018126d381954110e8cdb788650eb41d9e Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 27 Mar 2019 17:48:13 +0100 Subject: Add filter argument to status request Signed-off-by: David Oberhollenzer --- lib/include/initsock.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/include') diff --git a/lib/include/initsock.h b/lib/include/initsock.h index 76b2924..55321db 100644 --- a/lib/include/initsock.h +++ b/lib/include/initsock.h @@ -23,6 +23,14 @@ typedef enum { typedef struct { uint8_t rq; + uint8_t padd[3]; + + union { + struct { + uint8_t filter; + uint8_t padd[3]; + } status; + } arg; } init_request_t; typedef struct { @@ -36,7 +44,7 @@ int init_socket_create(void); int init_socket_open(const char *tmppath); -int init_socket_send_request(int fd, E_INIT_REQUEST rq); +int init_socket_send_request(int fd, E_INIT_REQUEST rq, ...); int init_socket_send_status(int fd, const void *dest_addr, size_t addrlen, E_SERVICE_STATE state, service_t *svc); -- cgit v1.2.3