Handle the pin code request in case of peripheral
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-adapter-dbus-handler.h
1 /*
2  * BLUETOOTH HAL
3  *
4  * Copyright (c) 2015 -2016 Samsung Electronics Co., Ltd All Rights Reserved.
5  *
6  * Contact: Anupam Roy <anupam.r@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *              http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 #ifndef _BT_HAL_ADAPTER_DBUS_HANDLER_H_
23 #define _BT_HAL_ADAPTER_DBUS_HANDLER_H_
24
25 #include <glib.h>
26 #include <sys/types.h>
27
28 #include "bt-hal.h"
29 #include "bt-hal-log.h"
30 #include "bt-hal-msg.h"
31
32 #include "bt-hal-event-receiver.h"
33
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 #ifdef TIZEN_BT_HAL
40 int _bt_hal_dbus_enable_le(void);
41
42 int _bt_hal_dbus_disable_le(void);
43 #endif
44
45 void _bt_hal_dbus_store_stack_msg_cb(handle_stack_msg cb);
46
47 int _bt_hal_dbus_enable_adapter(void);
48
49 int _bt_hal_dbus_disable_adapter(void);
50
51 int _bt_hal_dbus_recover_adapter(void);
52
53 #ifdef TIZEN_BT_HAL
54 int _bt_hal_dbus_reset_adapter(void);
55 #endif
56
57 int _bt_hal_dbus_start_discovery(gboolean is_custom, bt_disc_role_type_t role);
58
59 int _bt_hal_dbus_stop_discovery(void);
60
61 int _bt_hal_get_adapter_powered_state(uint8_t *state);
62
63 int _bt_hal_dbus_get_adapter_property(bt_property_type_t type);
64
65 int _bt_hal_dbus_get_adapter_properties(void);
66
67 int _bt_hal_dbus_set_adapter_property(const bt_property_t *property);
68
69 int _bt_hal_dbus_get_adapter_class(unsigned int *adapter_class);
70
71 int _bt_hal_enable_core(void);
72
73 #ifdef __cplusplus
74 }
75 #endif /* __cplusplus */
76 #endif /* _BT_HAL_ADAPTER_DBUS_HANDLER_H_ */