e7127a27990cfb720bda5c2956f1a858f8d1f43a
[platform/core/connectivity/bluetooth-agent.git] / pb-agent / bluetooth_pb_agent.h
1 /*
2  * Bluetooth-agent
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
7  *               Girishashok Joshi <girish.joshi@samsung.com>
8  *               Chanyeol Park <chanyeol.park@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *              http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24 #ifndef __DEF_BT_PB_AGENT_H_
25 #define __DEF_BT_PB_AGENT_H_
26
27 #include <unistd.h>
28 #include <dlog.h>
29
30 #include <stdio.h>
31
32 #define BT_PB_SERVICE_OBJECT_PATH       "/org/bluez/pb_agent"
33 #define BT_PB_SERVICE_NAME              "org.bluez.pb_agent"
34 #define BT_PB_SERVICE_INTERFACE         "org.bluez.PbAgent"
35
36 #undef LOG_TAG
37 #define LOG_TAG "BLUETOOTH_AGENT_PB"
38 #define INFO(fmt, args...) SLOGI(fmt, ##args)
39 #define DBG(fmt, args...) SLOGD(fmt, ##args)
40 #define ERR(fmt, args...) SLOGE(fmt, ##args)
41
42 #define DBG_SECURE(fmt, args...) SECURE_SLOGD(fmt, ##args)
43 #define ERR_SECURE(fmt, args...) SECURE_SLOGE(fmt, ##args)
44
45 #ifdef FUCNTION_CALLS
46 #define FN_START        DBG("ENTER==>")
47 #define FN_END          DBG("EXIT===>")
48 #else
49 #define FN_START
50 #define FN_END
51 #endif
52
53 typedef enum {
54         TELECOM_PB = 0,
55         TELECOM_ICH,
56         TELECOM_OCH,
57         TELECOM_MCH,
58         TELECOM_CCH,
59 #ifdef TIZEN_FEATURE_BT_PBAP_SIM
60         SIM_PB,
61 #endif
62         TELECOM_NONE
63 } PhoneBookType;
64
65 #endif                          /* __DEF_BT_AGENT_H_ */