resetting manifest requested domain to floor
[platform/core/connectivity/bluetooth-agent.git] / hfp-agent / bluetooth-hfp-agent.h
1 /*
2  * bluetooth-agent
3  *
4  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *              http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef __DEF_BT_HFP_AGENT_H_
21 #define __DEF_BT_HFP_AGENT_H_
22
23 #include <unistd.h>
24 #include <dlog.h>
25 #include <stdio.h>
26
27 #define BT_HFP_AGENT_ERROR (__bt_hfp_agent_error_quark())
28
29 typedef enum {
30         BT_HFP_AGENT_NETWORK_REG_STATUS_HOME,
31         BT_HFP_AGENT_NETWORK_REG_STATUS_ROAMING,
32         BT_HFP_AGENT_NETWORK_REG_STATUS_OFFLINE,
33         BT_HFP_AGENT_NETWORK_REG_STATUS_SEARCHING,
34         BT_HFP_AGENT_NETWORK_REG_STATUS_NO_SIM,
35         BT_HFP_AGENT_NETWORK_REG_STATUS_POWEROFF,
36         BT_HFP_AGENT_NETWORK_REG_STATUS_POWERSAFE,
37         BT_HFP_AGENT_NETWORK_REG_STATUS_NO_COVERAGE,
38         BT_HFP_AGENT_NETWORK_REG_STATUS_REJECTED,
39         BT_HFP_AGENT_NETWORK_REG_STATUS_UNKOWN,
40 } bt_hfp_agent_network_registration_status_t;
41
42 typedef enum {
43         BT_HFP_AGENT_ERROR_INTERNAL,
44         BT_HFP_AGENT_ERROR_NOT_AVAILABLE,
45         BT_HFP_AGENT_ERROR_NOT_CONNECTED,
46         BT_HFP_AGENT_ERROR_BUSY,
47         BT_HFP_AGENT_ERROR_INVALID_PARAM,
48         BT_HFP_AGENT_ERROR_ALREADY_EXSIST,
49         BT_HFP_AGENT_ERROR_ALREADY_CONNECTED,
50         BT_HFP_AGENT_ERROR_NO_MEMORY,
51         BT_HFP_AGENT_ERROR_I_O_ERROR,
52         BT_HFP_AGENT_ERROR_OPERATION_NOT_AVAILABLE,
53         BT_HFP_AGENT_ERROR_NO_CALL_LOGS,
54         BT_HFP_AGENT_ERROR_INVALID_MEMORY_INDEX,
55         BT_HFP_AGENT_ERROR_INVALID_CHLD_INDEX,
56         BT_HFP_AGENT_ERROR_BATTERY_STATUS,
57         BT_HFP_AGENT_ERROR_SIGNAL_STATUS,
58         BT_HFP_AGENT_ERROR_NOT_SUPPORTED,
59         BT_HFP_AGENT_ERROR_INVALID_NUMBER,
60         BT_HFP_AGENT_ERROR_APPLICATION,
61         BT_HFP_AGENT_ERROR_INVALID_DTMF,
62         BT_HFP_AGENT_ERROR_NONE,
63 } bt_hfp_agent_error_t;
64
65 #define BT_HFP_SERVICE_OBJECT_PATH "/org/bluez/hfp_agent"
66 #define BT_HFP_SERVICE "org.bluez.hfp_agent"
67
68 #undef LOG_TAG
69 #define LOG_TAG "BLUETOOTH_AGENT_HFP"
70
71 #define DBG(fmt, args...) SLOGD(fmt, ##args)
72 #define ERR(fmt, args...) SLOGE(fmt, ##args)
73 #endif /* __DEF_BT_HFP_AGENT_H_ */