Revision 311
multiplayer initial
hltp.h | ||
---|---|---|
2 | 2 |
#define HLTP_H_INCLUDED |
3 | 3 |
|
4 | 4 |
#include "uart.h" |
5 |
#include "proj_structures.h" |
|
5 | 6 |
|
6 | 7 |
typedef enum{ |
7 | 8 |
hltp_type_invalid = 0x00, |
8 |
hltp_type_string = 0x53 |
|
9 |
hltp_type_string = 0x53, |
|
10 |
hltp_type_host = 0x54, |
|
11 |
hltp_type_remote = 0x55 |
|
9 | 12 |
} hltp_type; |
10 | 13 |
|
11 | 14 |
int hltp_send_string(const char *p); |
15 |
int hltp_send_host_info(const host_info_t *p); |
|
16 |
int hltp_send_remote_info(const remote_info_t *p); |
|
12 | 17 |
hltp_type hltp_interpret(const uint8_t *p, const size_t sz, void **dest); |
13 |
|
|
14 | 18 |
#endif //HLTP_H_INCLUDED |
Also available in: Unified diff