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>
33 #define LOG_TAG "BLUETOOTH_FRWK_CORE"
35 #define BT_DBG(fmt, args...) \
37 #define BT_INFO(fmt, args...) \
39 #define BT_ERR(fmt, args...) \
42 #define BT_CORE_NAME "org.projectx.bt_core"
43 #define BT_CORE_PATH "/org/projectx/bt_core"
45 int _bt_core_service_request(int service_type, int service_function,
46 GArray *in_param1, GArray *in_param2,
47 GArray *in_param3, GArray *in_param4,
49 void _bt_core_fill_garray_from_variant(GVariant *var, GArray *param);
50 GDBusProxy *_bt_core_gdbus_get_service_proxy(void);
51 #ifdef TIZEN_FEATURE_BT_HPS
52 GDBusProxy *_bt_core_gdbus_get_hps_proxy(void);
53 int _bt_core_start_httpproxy(void);
54 int _bt_core_stop_httpproxy(void);
56 void _bt_core_gdbus_deinit_proxys(void);
58 GDBusConnection * _bt_core_get_gdbus_connection(void);
60 gboolean _bt_core_register_dbus(void);
61 void _bt_core_unregister_dbus(void);
65 #endif /* __cplusplus */
66 #endif /*_BT_CORE_DBUS_HANDLER_H_*/