*/
typedef struct {
int result; /**< Result */
- int cluster_count; /**< The number of clusters */
- unsigned char clusters[ZIGBEE_MAX_CLUSTERS]; /**< Clusters */
+ 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 */
} ZigbeeServiceGetClusterListResp_t;
/**
<arg type='a(y)' name='eui64' direction='in'/>
<arg type='y' name='endpoint' direction='in'/>
<arg type='i' name='result' direction='out'/>
- <arg type='aq' name='cluster_list' direction='out'/>
+ <arg type='aq' name='in_cluster_list' direction='out'/>
+ <arg type='aq' name='out_cluster_list' direction='out'/>
</method>
<method name='get_node_type'>
<arg type='a(y)' name='eui64' direction='in'/>
GDBusMethodInvocation *invocation;
ZigbeeServiceGetClusterListResp_t *payload =
(ZigbeeServiceGetClusterListResp_t*)resp_data;
- GVariant *v_clusters = NULL;
+ GVariant *v_in_clusters = NULL;
+ GVariant *v_out_clusters = NULL;
NOT_USED(service_interface);
NOT_USED(request_id);
invocation = zigbee_service_dbus_interface_ref_invocation(cb_data);
zblib_check_null_free_and_ret("invocation", invocation, cb_data);
- v_clusters = g_variant_new_from_data(G_VARIANT_TYPE("aq"),
- payload->clusters, payload->cluster_count, TRUE, NULL, NULL);
+ v_in_clusters = g_variant_new_from_data(G_VARIANT_TYPE("aq"),
+ payload->in_clusters, payload->in_cluster_count, 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);
zigbee_service_complete_get_cluster_list(service_object, invocation,
- payload->result, v_clusters);
+ payload->result, v_in_clusters, v_out_clusters);
g_free(cb_data);
}