Merge latest tizen_3.0 bug fix codes
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / include / bt-dpm.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *              http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #ifdef TIZEN_FEATURE_BT_DPM
19
20 #ifndef _BT_DPM_H_
21 #define _BT_DPM_H_
22
23 #include <sys/types.h>
24 #include <glib.h>
25 #include "bluetooth-api.h"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 typedef enum {
32         BT_DPM_NO_SERVICE,
33         BT_DPM_ALLOWED,
34         BT_DPM_RESTRICTED
35 } bt_dpm_status_e;
36
37 typedef enum {
38         BT_DPM_PAIRING,
39         BT_DPM_HF_ONLY,
40         BT_DPM_DESKTOP,
41         BT_DPM_ADDRESS,
42         BT_DPM_UUID,
43         BT_DPM_OPP,
44         BT_DPM_HSP,
45         BT_DPM_A2DP,
46         BT_DPM_AVRCP,
47         BT_DPM_SPP,
48         /* TODO: MAP? see above */
49 } bt_dpm_service_e;
50
51 int _bt_check_dpm(int service, void *param);
52
53 #ifdef __cplusplus
54 }
55 #endif /* __cplusplus */
56 #endif /*_BT_SERVICE_DPM_H_*/
57 #endif /* #ifdef TIZEN_FEATURE_BT_DPM */