f317521d164e207fa33d19cfb69f895a4c8ffe77
[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 typedef enum {
44         BT_PXP_REPORTER_ROLE = 0x00,
45         BT_PXP_MONITOR_ROLE = 0x01,
46 } bt_proximity_role_t;
47
48 int bt_set_proximity_property(bluetooth_device_address_t *device_address,
49                 unsigned int property, int value);
50
51 int bt_get_proximity_property(bluetooth_device_address_t *device_address,
52                 unsigned int property, int *value);
53
54 int bt_get_proximity_supported_services(bluetooth_device_address_t *device_address,
55                 unsigned int *supported_services);
56
57 int bt_register_proximity_reporter();
58
59 int bt_unregister_proximity_reporter();
60
61 #ifdef __cplusplus
62 }
63 #endif /* __cplusplus */
64 #endif /*_BT_SERVICE_PROXIMITY_H_*/