2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #ifndef _BT_CORE_DBUS_HANDLER_H_
20 #define _BT_CORE_DBUS_HANDLER_H_
22 #include <sys/types.h>
25 #include <dbus/dbus.h>
26 #include <dbus/dbus-glib.h>
27 #include <dbus/dbus-glib-lowlevel.h>
36 #define LOG_TAG "BLUETOOTH_FRWK_CORE"
38 #define BT_DBG(fmt, args...) \
40 #define BT_INFO(fmt, args...) \
42 #define BT_ERR(fmt, args...) \
45 #define BT_CORE_NAME "org.projectx.bt_core"
46 #define BT_CORE_PATH "/org/projectx/bt_core"
48 int _bt_core_service_request(int service_type, int service_function,
49 GArray *in_param1, GArray *in_param2,
50 GArray *in_param3, GArray *in_param4,
52 void _bt_core_fill_garray_from_variant(GVariant *var, GArray *param);
53 GDBusProxy *_bt_core_gdbus_get_service_proxy(void);
55 GDBusProxy *_bt_core_gdbus_get_hps_proxy(void);
57 void _bt_core_gdbus_deinit_proxys(void);
59 GDBusConnection * _bt_core_get_gdbus_connection(void);
61 gboolean _bt_core_register_dbus(void);
62 void _bt_core_unregister_dbus(void);
66 #endif /* __cplusplus */
67 #endif /*_BT_CORE_DBUS_HANDLER_H_*/