PXP: Add base code for Proximity Profile Monitor Role.
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-proximity.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
19 #ifndef _BT_SERVICE_PROXIMITY_H_
20 #define _BT_SERVICE_PROXIMITY_H_
21
22 #include <glib.h>
23 #include <sys/types.h>
24 #include "bluetooth-api.h"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30
31 typedef enum {
32         BT_PXP_ALERT_NONE = 0,
33         BT_PXP_ALERT_MILD,
34         BT_PXP_ALERT_HIGH
35 } bt_proximity_alert_value_t;
36
37 typedef enum {
38         BT_PXP_PROPERTY_LLS = 0x01,
39         BT_PXP_PROPERTY_IAS = 0x02,
40         BT_PXP_PROPERTY_TX_POWER = 0x04
41 } bt_proximity_alert_property_t;
42
43 int bt_set_proximity_property(bluetooth_device_address_t *device_address,
44                 unsigned int property, int value);
45
46 int bt_get_proximity_property(bluetooth_device_address_t *device_address,
47                 unsigned int property, int *value);
48
49 int bt_get_proximity_supported_services(bluetooth_device_address_t *device_address,
50                 unsigned int *supported_services);
51
52 #ifdef __cplusplus
53 }
54 #endif /* __cplusplus */
55 #endif /*_BT_SERVICE_PROXIMITY_H_*/
56