3b86193cda513a3a68662381b3cc303aa37adad5
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-headset-connection.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 #ifndef __BT_SERVICE_HEADSET_CONNECTION__
25 #define __BT_SERVICE_HEADSET_CONNECTION__
26
27 #undef LOG_TAG
28 #define LOG_TAG "BLUETOOTH_FRWK_SERVICE"
29 #define ERR(fmt, args...) SLOGE(fmt, ##args)
30
31 #define CONNECT_TIMEOUT (3 * 1000)
32
33 void _bt_headset_set_local_connection(gboolean value);
34 gboolean _bt_headset_get_local_connection();
35 void _bt_start_timer_for_connection(char *remote_address, int connection_type);
36 void __bt_connection_manager_set_state(char *remote_address, int event);
37
38
39 #endif