summaryrefslogtreecommitdiff
path: root/include/pso/protocol.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-25 12:25:33 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-25 12:25:33 -0400
commit25e3c303b8f47785a0056077a66b7a77449ff827 (patch)
treef19aedf782acf4c78c238e26f735e6f7b89163a9 /include/pso/protocol.h
parente4af5aabc6b9b70b514e8c124dd766aa44dcab7a (diff)
TMenuList: Add `TMenuList`, and everything else that's needed to get it
working I feel this is a good starting point for working on the protocol related code.
Diffstat (limited to 'include/pso/protocol.h')
-rw-r--r--include/pso/protocol.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/pso/protocol.h b/include/pso/protocol.h
new file mode 100644
index 0000000..697f6b0
--- /dev/null
+++ b/include/pso/protocol.h
@@ -0,0 +1,17 @@
+#ifndef PROTOCOL_H
+#define PROTOCOL_H
+
+#include "pso/forward.h"
+#include "pso/macros.h"
+#include <global_types.h>
+
+struct packet_header {
+ u8 command;
+ u8 flags;
+ u16 size;
+ void bswap();
+} __packed__;
+
+extern void bswap_16(u16 *val);
+extern void bswap_32(u32 *val);
+#endif