summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-04-26 10:39:07 -0400
committerRobby Zambito <contact@robbyzambito.me>2025-04-27 18:03:06 -0400
commit983544facffc7893e9d2958b651c2563528abbf5 (patch)
treed80e019fd1cedae7a9353303d0f80c1da14c45e3 /include
parent67818ed9d6439588f297ef1b9a25b547f266b628 (diff)
Add C to Zig converter
Further simplify struct
Diffstat (limited to 'include')
-rw-r--r--include/zaprus.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/include/zaprus.h b/include/zaprus.h
index 51ac70c..f170c38 100644
--- a/include/zaprus.h
+++ b/include/zaprus.h
@@ -23,20 +23,15 @@ struct SaprusMessage {
uint16_t payload_len;
union {
struct {
- struct {
- char dest[4];
- };
+ char dest[4];
} relay;
struct {
- struct {
- uint16_t src_port;
- uint16_t dest_port;
- uint32_t seq_num;
- uint32_t msg_id;
- char _reserved;
- char options;
- };
-
+ uint16_t src_port;
+ uint16_t dest_port;
+ uint32_t seq_num;
+ uint32_t msg_id;
+ char _reserved;
+ char options;
} connection;
} headers;
char *payload;