diff options
author | Robby Zambito <contact@robbyzambito.me> | 2025-04-26 10:39:07 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2025-04-27 16:18:48 -0400 |
commit | fe1c735026b08e6985dc267a7487cc58998cbaf5 (patch) | |
tree | 353ac2e12ce019642c1c9a8f03c7c29e38d5ee97 /include/zaprus.h | |
parent | 444f4868d53a3faf7edd2eb04d171516b6e505bb (diff) |
Add C to Zig converter
Further simplify struct
Diffstat (limited to 'include/zaprus.h')
-rw-r--r-- | include/zaprus.h | 19 |
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; |