Fix issue where server mtu changed callback ws not called
[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 #ifndef _BT_DPM_H_
19 #define _BT_DPM_H_
20
21 #include <sys/types.h>
22 #include <glib.h>
23 #include "bluetooth-api.h"
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 typedef enum {
30         BT_DPM_NO_SERVICE,
31         BT_DPM_ALLOWED,
32         BT_DPM_RESTRICTED
33 } bt_dpm_status_e;
34
35 typedef enum {
36         BT_DPM_PAIRING,
37         BT_DPM_HF_ONLY,
38         BT_DPM_DESKTOP,
39         BT_DPM_ADDRESS,
40         BT_DPM_UUID,
41         BT_DPM_OPP,
42         BT_DPM_HSP,
43         BT_DPM_A2DP,
44         BT_DPM_AVRCP,
45         BT_DPM_SPP,
46         /* TODO: MAP? see above */
47 } bt_dpm_service_e;
48
49 int _bt_check_dpm(int service, void *param);
50
51 #ifdef __cplusplus
52 }
53 #endif /* __cplusplus */
54 #endif /*_BT_SERVICE_DPM_H_*/