Add the base code for gtest verification
[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 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #include <unistd.h>
32 #include <dlog.h>
33
34 #include <stdio.h>
35
36 #define BT_PB_SERVICE_OBJECT_PATH       "/org/bluez/pb_agent"
37 #define BT_PB_SERVICE_NAME              "org.bluez.pb_agent"
38 #define BT_PB_SERVICE_INTERFACE         "org.bluez.PbAgent"
39
40 #undef LOG_TAG
41 #define LOG_TAG "BLUETOOTH_AGENT_PB"
42 #define INFO(fmt, args...) SLOGI(fmt, ##args)
43 #define DBG(fmt, args...) SLOGD(fmt, ##args)
44 #define ERR(fmt, args...) SLOGE(fmt, ##args)
45
46 #define DBG_SECURE(fmt, args...) SECURE_SLOGD(fmt, ##args)
47 #define ERR_SECURE(fmt, args...) SECURE_SLOGE(fmt, ##args)
48
49 #ifdef FUCNTION_CALLS
50 #define FN_START        DBG("ENTER==>")
51 #define FN_END          DBG("EXIT===>")
52 #else
53 #define FN_START
54 #define FN_END
55 #endif
56
57 typedef enum {
58         TELECOM_PB = 0,
59         TELECOM_ICH,
60         TELECOM_OCH,
61         TELECOM_MCH,
62         TELECOM_CCH,
63 #ifdef TIZEN_FEATURE_BT_PBAP_SIM
64         SIM_PB,
65 #endif
66         TELECOM_NONE
67 } PhoneBookType;
68
69 #ifdef __cplusplus
70 }
71 #endif
72
73 #endif                          /* __DEF_BT_AGENT_H_ */