#define MCOM_DATA_LEN 128
#define MCOM_COMMAND_BUFFER_SIZE (sizeof(player_mcom_config_t)) #define MCOM_DATA_BUFFER_SIZE 0 |
size of the data field in messages
#define MCOM_N_BUFS 10 |
number of buffers to keep per channel
#define MCOM_CHANNEL_LEN 8 |
size of channel name
#define MCOM_EMPTY_STRING "(EMPTY)" |
returns this if empty
#define PLAYER_MCOM_PUSH_REQ 0
#define PLAYER_MCOM_POP_REQ 1 #define PLAYER_MCOM_READ_REQ 2 #define PLAYER_MCOM_CLEAR_REQ 3 #define PLAYER_MCOM_SET_CAPACITY_REQ 4 |
request ids
struct player_mcom_data : A piece of data.
char full; |
a flag
char data[MCOM_DATA_LEN]; |
the data
struct player_mcom_config : Config requests sent to server.
uint8_t command; |
Which request. Should be one of the defined request ids.
uint16_t type; |
The "type" of the data.
char channel[MCOM_CHANNEL_LEN]; |
The name of the channel.
player_mcom_data_t data; |
The data.
struct player_mcom_return : Config replies from server.
uint16_t type; |
The "type" of the data
char channel[MCOM_CHANNEL_LEN]; |
The name of the channel.
player_mcom_data_t data; |
The data.