summaryrefslogtreecommitdiff
path: root/include/pso/protocol.h
blob: 697f6b0149dcb3fb58a0b968d999ee5e6f4f1f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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