From be066419049587e1349ada03306d004c30c18da6 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 29 Mar 2019 11:02:22 +0100 Subject: cleanup: init socket wire format Replace array adhockery with structs and make use of the handy endianness conversion macros. Signed-off-by: David Oberhollenzer --- lib/include/initsock.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/include/initsock.h') diff --git a/lib/include/initsock.h b/lib/include/initsock.h index 04b8ffd..ef8b9e3 100644 --- a/lib/include/initsock.h +++ b/lib/include/initsock.h @@ -39,6 +39,13 @@ typedef struct { } arg; } init_request_t; +typedef struct { + uint8_t state; + uint8_t exit_status; + uint8_t padd[2]; + int32_t id; +} init_response_status_t; + typedef struct { E_SERVICE_STATE state; int exit_status; -- cgit v1.2.3