diff options
Diffstat (limited to 'shared/protocol.h')
| -rw-r--r-- | shared/protocol.h | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/shared/protocol.h b/shared/protocol.h index dd5bcc6..cad9a1c 100644 --- a/shared/protocol.h +++ b/shared/protocol.h @@ -104,8 +104,9 @@ typedef struct {  } cd_s_cmd_node;  typedef struct { -	uint16_t node_count; -	cd_s_cmd_node nodes[]; +	uint16_t node_count; /** amount of nodes in nodes[] */ +	uint16_t remaining_size; /** remaining size (for convenience) */ +	cd_s_cmd_node nodes[]; /** nodes adjacent in memory (should be accessed using pointer arithmetic) */  } cd_s_cmd_response_get_node;  typedef struct { |