Modify init value for logging mode
[platform/core/connectivity/stc-iptables.git] / unittest / stcmgr.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 __STC_MGR_H__
17 #define __STC_MGR_H__
18
19 #include <glib.h>
20
21 #define CHAIN_NAME_LEN 128
22 #define IFACE_NAME_LEN 64
23 #define NFACCT_NAME_LEN 128
24 #define TARGET_NAME_LEN 64
25
26 #ifdef USE_DLOG
27 #include <dlog.h>
28 #undef LOG_TAG
29 #define LOG_TAG "STC_GTEST"
30 #define GLOGD(format, args...)  LOGD(format, ##args)
31 #else
32 #define GLOGD(format, args...)
33 #endif
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
50 #endif /* __STC_MGR_H__ */