<node>
<interface name='org.tizen.zigbee.service'>
<method name='enable'>
- <arg type='b' name='enabled' direction='out'/>
<arg type='i' name='result' direction='out'/>
+ <arg type='b' name='enabled' direction='out'/>
</method>
<method name='disable'>
<arg type='i' name='result' direction='out'/>
</method>
<method name='get_network_info'>
<arg type='i' name='result' direction='out'/>
- <arg type='ay' name='macAddress' direction='out'/>
+ <arg type='a(y)' name='macAddress' direction='out'/>
<arg type='q' name='nodeId' direction='out'/>
<arg type='q' name='panId' direction='out'/>
<arg type='y' name='channel' direction='out'/>
ZigbeeService *service_object;
GDBusMethodInvocation *invocation;
- ZigbeeServiceGetNetworkInfo_t *payload =
+ ZigbeeServiceGetNetworkInfo_t *payload =
(ZigbeeServiceGetNetworkInfo_t*)resp_data;
+ GVariant *v_eui64;
+
NOT_USED(service_interface);
NOT_USED(request_id);
invocation = zigbee_service_dbus_interface_ref_invocation(cb_data);
zblib_check_null_ret("invocation", invocation);
+ v_eui64 = g_variant_new_from_data(G_VARIANT_TYPE("a(y)"),
+ payload->eui64, ZIGBEE_EUI64_SIZE, TRUE, NULL, NULL);
+
zigbee_service_complete_get_network_info(service_object, invocation,
- payload->result, payload->eui64, payload->node_id,
+ payload->result, v_eui64, payload->node_id,
payload->pan_id, payload->channel, payload->radio_tx_power);
g_free(cb_data);
#include <glib.h>
#include <zblib_log.h>
+#include <zblib_types.h>
#include <zblib_common.h>
#include <zigbee_service_type.h>
--- /dev/null
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Suresh Kumar N (suresh.n@samsung.com)
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __ZIGBEE_LIB_TYPES_H__
+#define __ZIGBEE_LIB_TYPES_H__
+
+/* --------------------------------------------------------------------------------------
+ * For Responses
+ * -------------------------------------------------------------------------------------*/
+
+/* Previous 'status' return value uses vendor return code directly.
+ * It need to be changed */
+typedef enum
+{
+ ZBLIB_ERROR_NONE = 0, /**< Successful */
+ ZBLIB_ERROR_UNKNOWN /**< Unknown error */
+} zblib_error_e;
+
+#endif /* __ZIGBEE_LIB_TYPES_H__ */