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_SERVICE_ADAPTER_LE_H_
26 #define _BT_SERVICE_ADAPTER_LE_H_
29 #include <sys/types.h>
30 #include "bluetooth-api.h"
36 int _bt_service_adapter_le_init(void);
38 void _bt_service_adapter_le_deinit(void);
40 gboolean _bt_update_le_feature_support(const char *item, const char *value);
42 const char* _bt_get_adv_slot_owner(int slot_id);
44 void _bt_set_advertising_status(int slot_id, gboolean mode);
46 gboolean _bt_is_advertising(void);
48 void _bt_stop_advertising_by_terminated_process(const char* terminated_name);
50 int _bt_set_advertising(gboolean enable, const char *sender, gboolean use_reserved_slot);
52 int _bt_set_custom_advertising(gboolean enable, bluetooth_advertising_params_t *params, const char *sender, gboolean use_reserved_slot);
54 int _bt_get_advertising_data(bluetooth_advertising_data_t *adv, int *length);
56 int _bt_set_advertising_data(bluetooth_advertising_data_t *data, int length, const char *sender, gboolean use_reserved_slot);
58 int _bt_get_scan_response_data(bluetooth_scan_resp_data_t *response, int *length);
60 int _bt_set_scan_response_data(bluetooth_scan_resp_data_t *response, int length, const char *sender, gboolean use_reserved_slot);
62 int _bt_set_scan_parameters(bluetooth_le_scan_params_t *params);
64 int _bt_add_white_list(bluetooth_device_address_t *device_address, bluetooth_device_address_type_t address_type);
66 int _bt_remove_white_list(bluetooth_device_address_t *device_address, bluetooth_device_address_type_t address_type);
68 int _bt_clear_white_list(void);
72 #endif /* __cplusplus */
73 #endif /*_BT_SERVICE_ADAPTER_LE_H_*/