Modify init value for logging mode
[platform/core/connectivity/stc-iptables.git] / unittest / chain.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_IPT_CHAIN_H__
17 #define __STC_IPT_CHAIN_H__
18
19 #include <glib.h>
20 #include <gio/gio.h>
21
22 #include "stcmgr.h"
23 #include "gdbus.h"
24
25 #define STC_IPT_METHOD_IPT_ADD_CHAIN      "IptAddChain"
26 #define STC_IPT_METHOD_IPT_FLUSH_CHAIN    "IptFlushChain"
27 #define STC_IPT_METHOD_IPT_REMOVE_CHAIN   "IptRemoveChain"
28
29 #define STC_IPT_METHOD_IP6T_ADD_CHAIN     "Ip6tAddChain"
30 #define STC_IPT_METHOD_IP6T_FLUSH_CHAIN   "Ip6tFlushChain"
31 #define STC_IPT_METHOD_IP6T_REMOVE_CHAIN  "Ip6tRemoveChain"
32
33 class Chain : public GDbus {
34 private:
35         char m_ChainName[CHAIN_NAME_LEN];
36 public:
37         Chain();
38         ~Chain();
39         error_e SetChainName(const char *name);
40         error_e AddChain(void);
41         error_e Add6Chain(void);
42         error_e FlushChain(void);
43         error_e Flush6Chain(void);
44         error_e RemoveChain(void);
45         error_e Remove6Chain(void);
46 };
47
48 #endif /* __STC_IPT_CHAIN_H__ */