Remove security-server dependency
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-adapter-le.h
1 /*
2  * Bluetooth-frwk
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
7  *               Girishashok Joshi <girish.joshi@samsung.com>
8  *               Chanyeol Park <chanyeol.park@samsung.com>
9  *
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
13  *
14  *              http://www.apache.org/licenses/LICENSE-2.0
15  *
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.
21  *
22  */
23
24
25 #ifndef _BT_SERVICE_ADAPTER_LE_H_
26 #define _BT_SERVICE_ADAPTER_LE_H_
27
28 #include <glib.h>
29 #include <sys/types.h>
30 #include "bluetooth-api.h"
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
36 int _bt_service_adapter_le_init(void);
37
38 void _bt_service_adapter_le_deinit(void);
39
40 gboolean _bt_update_le_feature_support(const char *item, const char *value);
41
42 const char* _bt_get_adv_slot_owner(int slot_id);
43
44 void _bt_set_advertising_status(int slot_id, gboolean mode);
45
46 gboolean _bt_is_advertising(void);
47
48 void _bt_stop_advertising_by_terminated_process(const char* terminated_name);
49
50 int _bt_set_advertising(gboolean enable, const char *sender, gboolean use_reserved_slot);
51
52 int _bt_set_custom_advertising(gboolean enable, bluetooth_advertising_params_t *params, const char *sender, gboolean use_reserved_slot);
53
54 int _bt_get_advertising_data(bluetooth_advertising_data_t *adv, int *length);
55
56 int _bt_set_advertising_data(bluetooth_advertising_data_t *data, int length, const char *sender, gboolean use_reserved_slot);
57
58 int _bt_get_scan_response_data(bluetooth_scan_resp_data_t *response, int *length);
59
60 int _bt_set_scan_response_data(bluetooth_scan_resp_data_t *response, int length, const char *sender, gboolean use_reserved_slot);
61
62 int _bt_set_scan_parameters(bluetooth_le_scan_params_t *params);
63
64 int _bt_add_white_list(bluetooth_device_address_t *device_address, bluetooth_device_address_type_t address_type);
65
66 int _bt_remove_white_list(bluetooth_device_address_t *device_address, bluetooth_device_address_type_t address_type);
67
68 int _bt_clear_white_list(void);
69
70 #ifdef __cplusplus
71 }
72 #endif /* __cplusplus */
73 #endif /*_BT_SERVICE_ADAPTER_LE_H_*/
74