3629b35713a1e90c4f1a1490405987fb44e7eabb
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-internal.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_INTERNAL_H_
23 #define _BT_HAL_INTERNAL_H_
24
25 #include <glib.h>
26 #include <sys/types.h>
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 typedef enum {
33         BT_HAL_MANAGER_EVENT = 0x01,
34         BT_HAL_ADAPTER_EVENT,
35         BT_HAL_LE_ADAPTER_EVENT,
36         BT_HAL_DEVICE_EVENT,
37         BT_HAL_HID_EVENT,
38         BT_HAL_NETWORK_EVENT,
39         BT_HAL_HEADSET_EVENT,
40         BT_HAL_AVRCP_EVENT,
41         BT_HAL_OPP_CLIENT_EVENT,
42         BT_HAL_OPP_SERVER_EVENT,
43         BT_HAL_PBAP_CLIENT_EVENT,
44         BT_HAL_RFCOMM_CLIENT_EVENT,
45         BT_HAL_RFCOMM_SERVER_EVENT,
46         BT_HAL_AGENT_EVENT,
47         BT_HAL_OBJECT_MANAGER_EVENT,
48         BT_HAL_MEDIA_TRANSFER_EVENT,
49         BT_HAL_HF_AGENT_EVENT,
50         BT_HAL_AVRCP_CONTROL_EVENT,
51         BT_HAL_A2DP_SOURCE_EVENT,
52         BT_HAL_HID_DEVICE_EVENT,
53         /* Will be added */
54 } bt_hal_event_type_t;
55
56 /* Profile states matched to btd_service_state_t of bluez service.h */
57 typedef enum {
58         BT_HAL_PROFILE_STATE_UNAVAILABLE,
59         BT_HAL_PROFILE_STATE_DISCONNECTED,
60         BT_HAL_PROFILE_STATE_CONNECTING,
61         BT_HAL_PROFILE_STATE_CONNECTED,
62         BT_HAL_PROFILE_STATE_DISCONNECTING,
63 } bt_hal_profile_state_t;
64
65 /* UUIDs */
66 #define HID_UUID                "00001124-0000-1000-8000-00805f9b34fb"
67 #define A2DP_SINK_UUID          "0000110b-0000-1000-8000-00805f9b34fb"
68 #define A2DP_SOURCE_UUID        "0000110a-0000-1000-8000-00805f9b34fb"
69 #define AVRCP_CTRL_UUID       "0000110e-0000-1000-8000-00805f9b34fb"
70 #define AVRCP_TARGET_UUID       "0000110c-0000-1000-8000-00805f9b34fb"
71 #define HFP_HF_UUID             "0000111e-0000-1000-8000-00805f9b34fb"
72
73 /* TODO  More declarations to be added in subsequent patches */
74 #ifdef __cplusplus
75 }
76 #endif /* __cplusplus */
77 #endif /* _BT_HAL_INTERNAL_H_ */