Rename protocol structs

This commit is contained in:
2016-08-12 12:18:10 +03:00
parent dcd7a46d0a
commit 3309026308
5 changed files with 25 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ enum msg_types {
GET_MEMORY
};
struct msg_meta {
struct msg_meta_t {
unsigned short id; /* Agent job ID */
unsigned short type; /* Data type */
unsigned len; /* Data size to expect in buffer */
@@ -27,14 +27,14 @@ struct msg_meta {
short locking;
};
struct msg_chunk {
struct msg_chunk_t {
int id;
unsigned char data[CHUNKSIZE];
};
struct msg {
struct msg_meta meta;
struct msg_chunk chunk;
struct msg_t {
struct msg_meta_t meta;
struct msg_chunk_t chunk;
};
#endif /* PROTOCOL_H */