summaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-03-29 11:02:22 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2019-03-29 21:00:53 +0100
commitbe066419049587e1349ada03306d004c30c18da6 (patch)
treed7262525f81370c865ef473f3c8e5649cc306611 /lib/include
parentc3d14cbfa863ea3af8aaa253f1d7d3909adf1547 (diff)
cleanup: init socket wire format
Replace array adhockery with structs and make use of the handy endianness conversion macros. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/initsock.h7
1 files changed, 7 insertions, 0 deletions
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
@@ -40,6 +40,13 @@ typedef struct {
} 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;
int id;