2 * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
4 * Contact: Anupam Roy <anupam.r@samsung.com>
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 #ifndef _BT_SERVICE_CORE_ADAPTER_H_
22 #define _BT_SERVICE_CORE_ADAPTER_H_
24 #include <sys/types.h>
31 ADAPTER_DISCOVERY_STOPPED,
32 ADAPTER_DISCOVERY_STARTED,
33 ADAPTER_DISCOVERY_STARTING,
34 ADAPTER_DISCOVERY_STOPPING,
35 } bt_adapter_discovery_state_t;
44 int _bt_enable_adapter(void);
46 int _bt_disable_adapter(void);
48 int _bt_start_discovery(unsigned short max_response,
49 unsigned short duration, unsigned int cod_mask);
51 int _bt_cancel_discovery(void);
53 gboolean _bt_is_discovering(void);
55 int _bt_stack_init(void);
57 int _bt_get_local_address(void);
59 int _bt_get_local_version(void);
61 int _bt_get_local_name(void);
63 int _bt_set_local_name(char *local_name);
65 int _bt_get_discoverable_mode(int *mode);
67 int _bt_get_timeout_value(int *timeout);
69 int _bt_set_discoverable_mode(int discoverable_mode, int timeout);
71 gboolean _bt_is_connectable(void);
73 int _bt_is_service_used(void);
75 int _bt_set_connectable(gboolean connectable);
77 int _bt_adapter_get_bonded_devices(void);
81 #endif /* __cplusplus */
82 #endif /*_BT_SERVICE_CORE_ADAPTER_H_*/