Rename protocol structs
This commit is contained in:
10
protocol.h
10
protocol.h
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user