Tizen 2.1 base
[apps/native/ug-bluetooth-efl.git] / include / bt-dbus-method.h
1 /*
2  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Flora License, Version 1.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
7  *
8  *   http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software 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.
15  */
16
17 #ifndef __BT_DBUS_METHOD_H__
18 #define __BT_DBUS_METHOD_H__
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 #include <glib.h>
25 #include <dbus/dbus.h>
26 #include <dbus/dbus-glib-bindings.h>
27
28 #define BT_ADAPTER_PATH_LEN 50
29
30 #define BLUEZ_DBUS_NAME "org.bluez"
31 #define MANAGER_INTERFACE "org.bluez.Manager"
32 #define ADAPTER_INTERFACE "org.bluez.Adapter"
33 #define HID_INTERFACE "org.bluez.Input"
34 #define HEADSET_INTERFACE "org.bluez.Headset"
35 #define SYNK_INTERFACE "org.bluez.AudioSink"
36
37 #define AGENT_NAME "org.projectx.bt"
38 #define AGENT_PATH "/org/tizen/adapter_agent"
39 #define AGENT_INTERFACE "org.bluez.Agent"
40
41 #define BT_CORE_NAME "org.projectx.bt_core"
42 #define BT_CORE_PATH "/org/projectx/bt_core"
43 #define BT_CORE_INTERFACE "org.projectx.btcore"
44
45 DBusGProxy *_bt_get_adapter_proxy(DBusGConnection *conn);
46
47 void _bt_reset_environment(void);
48
49 gboolean _bt_is_profile_connected(int connected_type,
50                                 DBusGConnection *conn,
51                                 unsigned char *addr);
52
53 #ifdef __cplusplus
54 }
55 #endif
56 #endif /* __BT_DBUS_METHOD_H__ */