int result; /**< Result */
int in_cluster_count; /**< The number of in clusters */
int out_cluster_count; /**< The number of out clusters */
- unsigned char in_clusters[ZIGBEE_MAX_CLUSTERS]; /**< In Clusters */
- unsigned char out_clusters[ZIGBEE_MAX_CLUSTERS]; /**< Out Clusters */
+ unsigned short in_clusters[ZIGBEE_MAX_CLUSTERS]; /**< In Clusters */
+ unsigned short out_clusters[ZIGBEE_MAX_CLUSTERS]; /**< Out Clusters */
} ZigbeeServiceGetClusterListResp_t;
/**
zblib_check_null_free_and_ret("invocation", invocation, cb_data);
v_in_clusters = g_variant_new_from_data(G_VARIANT_TYPE("aq"),
- payload->in_clusters, payload->in_cluster_count, TRUE, NULL, NULL);
+ payload->in_clusters, (payload->in_cluster_count * sizeof(unsigned short)),
+ TRUE, NULL, NULL);
v_out_clusters = g_variant_new_from_data(G_VARIANT_TYPE("aq"),
- payload->out_clusters, payload->out_cluster_count, TRUE, NULL, NULL);
+ payload->out_clusters, (payload->out_cluster_count * sizeof(unsigned short)),
+ TRUE, NULL, NULL);
zigbee_service_complete_get_cluster_list(service_object, invocation,
payload->result, v_in_clusters, v_out_clusters);