4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Hocheol Seo <hocheol.seo@samsung.com>
7 * Girishashok Joshi <girish.joshi@samsung.com>
8 * Chanyeol Park <chanyeol.park@samsung.com>
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
25 #ifndef _BT_CORE_DBUS_HANDLER_H_
26 #define _BT_CORE_DBUS_HANDLER_H_
28 #include <sys/types.h>
31 #include <dbus/dbus.h>
32 #include <dbus/dbus-glib.h>
33 #include <dbus/dbus-glib-lowlevel.h>
42 #define LOG_TAG "BLUETOOTH_FRWK_CORE"
44 #define BT_DBG(fmt, args...) \
46 #define BT_INFO(fmt, args...) \
48 #define BT_ERR(fmt, args...) \
51 #define BT_CORE_NAME "org.projectx.bt_core"
52 #define BT_CORE_PATH "/org/projectx/bt_core"
54 int _bt_core_service_request(int service_type, int service_function,
55 GArray *in_param1, GArray *in_param2,
56 GArray *in_param3, GArray *in_param4,
58 void _bt_core_fill_garray_from_variant(GVariant *var, GArray *param);
59 GDBusProxy *_bt_core_gdbus_get_service_proxy(void);
61 GDBusProxy *_bt_core_gdbus_get_hps_proxy(void);
63 void _bt_core_gdbus_deinit_proxys(void);
65 GDBusConnection * _bt_core_get_gdbus_connection(void);
67 gboolean _bt_core_register_dbus(void);
68 void _bt_core_unregister_dbus(void);
72 #endif /* __cplusplus */
73 #endif /*_BT_CORE_DBUS_HANDLER_H_*/