Initialize smart traffic control iptables package
[platform/core/connectivity/stc-iptables.git] / include / stc-iptables.h
1 /*
2  *  Copyright (c) 2016 Samsung Electronics Co., Ltd.
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License version 2 as
6  *  published by the Free Software Foundation.
7  *
8  *  This program is distributed in the hope that it will be useful,
9  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  *  GNU General Public License for more details.
12  *
13  *  You should have received a copy of the GNU General Public License
14  *  along with this program; if not, write to the Free Software
15  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16  */
17
18 #ifndef __STC_IPTABLES_H__
19 #define __STC_IPTABLES_H__
20
21 #include <glib.h>
22 #include <gio/gio.h>
23
24 #include "stc-iptables-log.h"
25 #include "stc-iptables-util.h"
26
27 typedef struct {
28         GMainLoop *main_loop;
29
30         gpointer rule_obj;
31         gpointer chain_obj;
32
33         GDBusObjectManagerServer *obj_mgr;
34         GDBusConnection *connection;
35         guint gdbus_owner_id;
36 } stc_iptables_s;
37
38 stc_iptables_s *stc_get_iptables(void);
39
40 #endif /* __STC_IPTABLES_H__ */