2 * Copyright (c) 2016 Samsung Electronics Co., Ltd. All rights reserved.
4 * Contact: Suresh Kumar N (suresh.n@samsung.com)
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef __ZIGBEE_SERVICE_INTERFACE_COMMON_H__
20 #define __ZIGBEE_SERVICE_INTERFACE_COMMON_H__
31 #include "zigbee_generated_code.h"
33 #include "zigbee_service_dbus_interface_service.h"
34 #include "zigbee_service_dbus_interface_on_off.h"
35 #include "zigbee_service_dbus_interface_door_lock.h"
36 #include "zigbee_service_dbus_interface_level_control.h"
37 #include "zigbee_service_dbus_interface_thermostat.h"
38 #include "zigbee_service_dbus_interface_fan_control.h"
39 #include "zigbee_service_dbus_interface_alarm.h"
40 #include "zigbee_service_dbus_interface_mfglib_control.h"
41 #include "zigbee_service_dbus_interface_zclglobal_control.h"
42 #include "zigbee_service_dbus_interface_zdodev_control.h"
43 #include "zigbee_service_dbus_interface_zclbasic_control.h"
44 #include "zigbee_service_dbus_interface_zclidentify_control.h"
45 #include "zigbee_service_dbus_interface_zclias_control.h"
46 #include "zigbee_service_dbus_interface_zcl_poll_control.h"
47 #include "zigbee_service_dbus_interface_zcl_group.h"
48 #include "zigbee_service_dbus_interface_zcl_scene.h"
49 #include "zigbee_service_dbus_interface_zdo_bind.h"
50 #include "zigbee_service_dbus_interface_zcl_color.h"
51 #include "zigbee_service_dbus_interface_custom.h"
53 /**< ZigBee D-BUS service*/
54 #define ZIGBEE_DBUS_SERVICE "org.tizen.zigbee"
56 /**< ZigBee D-BUS service path */
57 #define ZIGBEE_DBUS_PATH "/org/tizen/zigbee"
59 /**< ZigBee D-BUS interface custom data */
61 GDBusObjectManagerServer *manager; /**< ZigBee object */
62 ZigbeeManager *zigbee_mgr;
63 GHashTable *objects; /**< ZigBee D-BUS object(s) */
65 gint bus_id; /**< ZigBee D-BUS ID */
67 gboolean name_acquired; /**< ZigBee D-BUS name acquired */
68 gboolean sevice_interface_init_complete; /**< ZigBee D-BUS service init completed */
70 gboolean zigbee_state; /**< ZigBee service state */
73 #endif /* __ZIGBEE_SERVICE_INTERFACE_COMMON_H__ */