change dbus service to systemd service
[platform/core/connectivity/smartcard-service.git] / gtest / common.h
1 /*
2  * Copyright (c) 2017 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 #ifndef __SMARTCARD_CONF_H__
17 #define __SMARTCARD_CONF_H__
18
19 #include <glib.h>
20
21 #ifdef USE_DLOG
22 #include <dlog.h>
23 #undef LOG_TAG
24 #define LOG_TAG "SMARTCARD_SERVICE_GTEST"
25 #define GLOGD(format, args...)  LOGD(format, ##args)
26 #else
27 #define GLOGD(format, args...)
28 #endif
29
30 #define  SE_FEATURE "http://tizen.org/feature/network.secure_element"
31 #define  SE_UICC_FEATURE "http://tizen.org/feature/network.secure_element.uicc"
32 #define  SE_ESE_FEATURE "http://tizen.org/feature/network.secure_element.ese"
33
34
35 typedef enum {
36         ERROR_NONE = 0,
37         ERROR_NOT_PERMITTED = -1,
38         ERROR_OUT_OF_MEMORY = -2,
39         ERROR_PERMISSION_DENIED = -3,
40         ERROR_RESOURCE_BUSY = -4,
41         ERROR_INVALID_OPERATION = -5,
42         ERROR_INVALID_PARAMETER = -6,
43         ERROR_NOT_SUPPORTED = -7,
44         ERROR_OPERATION_FAILED = -8,
45         ERROR_NOT_INITIALIZED = -9,
46         ERROR_ALREADY_INITIALIZED = -10,
47         ERROR_IN_PROGRESS = -11,
48 } error_e;
49 #endif /* __SMARTCARD_CONF_H__ */