aboutsummaryrefslogtreecommitdiff
path: root/shared/protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/protocol.h')
-rw-r--r--shared/protocol.h5
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 {