diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2019-03-29 11:02:22 +0100 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2019-03-29 21:00:53 +0100 |
commit | be066419049587e1349ada03306d004c30c18da6 (patch) | |
tree | d7262525f81370c865ef473f3c8e5649cc306611 /lib/include | |
parent | c3d14cbfa863ea3af8aaa253f1d7d3909adf1547 (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.h | 7 |
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; |