aboutsummaryrefslogtreecommitdiff
path: root/shared/pclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/pclient.h')
-rw-r--r--shared/pclient.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/pclient.h b/shared/pclient.h
index d0ddeb7..e1bb7e7 100644
--- a/shared/pclient.h
+++ b/shared/pclient.h
@@ -74,7 +74,9 @@ cd_s_bin* cd_cmd_res(cd_e_scmds cmd, cd_cmd_id_t id, uint16_t len, uint8_t* data
* @param link_count amount of lights this node controls
* @param links array of light node uuids
*/
-cd_s_cmd_node* cd_cmd_node_alloc(cd_s_cmd_node base, const char* name, uint16_t link_count, cd_uuid_t* links);
+cd_s_cmd_node* cd_cmd_node_alloc(const char* name, cd_s_cmd_node base, uint16_t link_count, cd_uuid_t* links);
+
+#define cd_cmd_node_sizeof(node) ((sizeof(cd_s_cmd_node) + cd_bin_ntoh16(node->remaining_size)) /* NOLINT */)
#ifdef __cplusplus
}