Add hdr and tlv of nflog for pcap
[platform/core/connectivity/stc-manager.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 APP_ID_LEN 128
22 #define IFNAME_LEN 16
23 #define SUBSCRIBER_ID_LEN 128
24 #define MAC_LEN 18
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 typedef enum {
51         IFACE_UNKNOWN,
52         IFACE_DATACALL,
53         IFACE_WIFI,
54         IFACE_WIRED,
55         IFACE_BLUETOOTH,
56         IFACE_ALL,
57 } iface_type_e;
58
59 typedef enum {
60         ROAMING_UNKNOWN,
61         ROAMING_ENABLED,
62         ROAMING_DISABLED,
63 } roaming_type_e;
64
65 typedef enum {
66         TIME_PERIOD_UNKNOWN = 0,
67         TIME_PERIOD_HOUR = 3600,
68         TIME_PERIOD_DAY = 86400,
69         TIME_PERIOD_WEEK = 604800,
70         TIME_PERIOD_MONTH = 2419200,
71 } time_period_e;
72
73 #endif /* __STC_MGR_H__ */