Added dump log for connect fail #2
[platform/core/connectivity/net-config.git] / gtest / netconf.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 __NETCONF_H__
17 #define __NETCONF_H__
18
19 #include <glib.h>
20
21 #ifdef USE_DLOG
22 #include <dlog.h>
23 #undef LOG_TAG
24 #define LOG_TAG "NET_CONFIG_TEST"
25 #define GLOGD(format, args...)  LOGD(format, ##args)
26 #else
27 #define GLOGD(format, args...)
28 #endif
29
30 typedef enum {
31         ERROR_NONE = 0,
32         ERROR_NOT_PERMITTED = -1,
33         ERROR_OUT_OF_MEMORY = -2,
34         ERROR_PERMISSION_DENIED = -3,
35         ERROR_RESOURCE_BUSY = -4,
36         ERROR_INVALID_OPERATION = -5,
37         ERROR_INVALID_PARAMETER = -6,
38         ERROR_NOT_SUPPORTED = -7,
39         ERROR_OPERATION_FAILED = -8,
40         ERROR_NOT_INITIALIZED = -9,
41         ERROR_ALREADY_INITIALIZED = -10,
42         ERROR_IN_PROGRESS = -11,
43 } error_e;
44
45
46 #endif /* __NETCONF_H__ */