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 #include "zigbee_service_interface_common.h"
21 static gboolean on_zclidentify_control_identify(ZigbeeZclidentify_control *zclidentify_control_object,
22 GDBusMethodInvocation *invocation,
28 ZigBeeService *service = (ZigBeeService *)user_data;
30 NOT_USED(zclidentify_control_object);
35 NOT_USED(identifytime);
39 * Create and send request for processing
45 static gboolean on_zclidentify_control_query(ZigbeeZclidentify_control *zclidentify_control_object,
46 GDBusMethodInvocation *invocation,
50 ZigBeeService *service = (ZigBeeService *)user_data;
52 NOT_USED(zclidentify_control_object);
59 * Create and send request for processing
65 gboolean zigbee_service_dbus_interface_zclidentify_control_init(ZigBeeService *service,
66 ZigbeeObjectSkeleton *zigbee_object)
68 ZigbeeZclidentify_control *zclidentify_control_object;
70 if (NULL == service) {
71 Z_LOGE("service is NULL");
75 zclidentify_control_object = zigbee_zclidentify_control_skeleton_new();
76 zigbee_object_skeleton_set_zclidentify_control(zigbee_object, zclidentify_control_object);
77 g_object_unref(zclidentify_control_object);
79 Z_LOGI("zclidentify_control_object: [%p]", zclidentify_control_object);
82 * Register signal handlers for 'zclidentify_control' interface
84 g_signal_connect(zclidentify_control_object,
86 G_CALLBACK(on_zclidentify_control_identify), service);
88 g_signal_connect(zclidentify_control_object,
90 G_CALLBACK(on_zclidentify_control_query), service);