[Warnings] Fixed build warnings.
[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 #include <dbus/dbus-glib.h>
33
34 #define BT_PB_SERVICE_OBJECT_PATH       "/org/bluez/pb_agent"
35 #define BT_PB_SERVICE_NAME              "org.bluez.pb_agent"
36 #define BT_PB_SERVICE_INTERFACE         "org.bluez.PbAgent"
37
38 #undef LOG_TAG
39 #define LOG_TAG "BLUETOOTH_AGENT_PB"
40 #define INFO(fmt, args...) SLOGI(fmt, ##args)
41 #define DBG(fmt, args...) SLOGD(fmt, ##args)
42 #define ERR(fmt, args...) SLOGE(fmt, ##args)
43
44 #define DBG_SECURE(fmt, args...) SECURE_SLOGD(fmt, ##args)
45 #define ERR_SECURE(fmt, args...) SECURE_SLOGE(fmt, ##args)
46
47 #ifdef FUCNTION_CALLS
48 #define FN_START        DBG("ENTER==>")
49 #define FN_END          DBG("EXIT===>")
50 #else
51 #define FN_START
52 #define FN_END
53 #endif
54
55 typedef enum {
56         TELECOM_PB = 0,
57         TELECOM_ICH,
58         TELECOM_OCH,
59         TELECOM_MCH,
60         TELECOM_CCH,
61 #ifdef PBAP_SIM_ENABLE
62         SIM_PB,
63 #endif
64         TELECOM_NONE
65 } PhoneBookType;
66
67 #endif                          /* __DEF_BT_AGENT_H_ */