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_zclbasic_control_reset_factory_default(ZigbeeZclbasic_control *zclbasic_control_object,
22 GDBusMethodInvocation *invocation,
27 ZigBeeService *service = (ZigBeeService *)user_data;
29 NOT_USED(zclbasic_control_object);
37 * Create and send request for processing
43 gboolean zigbee_service_dbus_interface_zclbasic_control_init(ZigBeeService *service,
44 ZigbeeObjectSkeleton *zigbee_object)
46 ZigbeeZclbasic_control *zclbasic_control_object;
48 if (NULL == service) {
49 Z_LOGE("service is NULL");
53 zclbasic_control_object = zigbee_zclbasic_control_skeleton_new();
54 zigbee_object_skeleton_set_zclbasic_control(zigbee_object, zclbasic_control_object);
55 g_object_unref(zclbasic_control_object);
57 Z_LOGI("zclbasic_control_object: [%p]", zclbasic_control_object);
60 * Register signal handlers for 'zclbasic_control' interface
62 g_signal_connect(zclbasic_control_object,
63 "handle-reset-factory-default",
64 G_CALLBACK(on_zclbasic_control_reset_factory_default), service);