summaryrefslogtreecommitdiffstats
path: root/plugin/firewall
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-11-28 09:57:07 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-11-28 09:57:07 +0100
commite2021e05c06cefffcb6a2b165fb15bbf84948590 (patch)
tree18e01e43a9473a1c0947a0cf5f24a10026c4bbe1 /plugin/firewall
parent570a80dfadd2513f628b4d540fc719883fa8674a (diff)
downloadeurephia-e2021e05c06cefffcb6a2b165fb15bbf84948590.tar.gz
eurephia-e2021e05c06cefffcb6a2b165fb15bbf84948590.tar.xz
eurephia-e2021e05c06cefffcb6a2b165fb15bbf84948590.zip
Made eurephia_context.h even more generic and independent
eurephia_context.h do only need to know about the eurephiaFWINTF * struct when compiling the auth plug-in and firewall modules. To enable this, EUREPHIA_FWINTF needs to be defined as well as the eurephiafw_struct.h must be included before including eurephia_context.h in the source. When this is not done, *fwcfg will just be a void *.
Diffstat (limited to 'plugin/firewall')
-rw-r--r--plugin/firewall/eurephiafw.c2
-rw-r--r--plugin/firewall/eurephiafw_helpers.c2
-rw-r--r--plugin/firewall/iptables/efw-iptables.c4
3 files changed, 7 insertions, 1 deletions
diff --git a/plugin/firewall/eurephiafw.c b/plugin/firewall/eurephiafw.c
index f1b15a1..ae383cc 100644
--- a/plugin/firewall/eurephiafw.c
+++ b/plugin/firewall/eurephiafw.c
@@ -30,6 +30,8 @@
#include <sys/wait.h>
#include <time.h>
+#define EUREPHIA_FWINTF
+#include <eurephiafw_struct.h>
#include <eurephia_context.h>
#include "eurephia_log.h"
#include "eurephiafw.h"
diff --git a/plugin/firewall/eurephiafw_helpers.c b/plugin/firewall/eurephiafw_helpers.c
index 29d2f06..00bf516 100644
--- a/plugin/firewall/eurephiafw_helpers.c
+++ b/plugin/firewall/eurephiafw_helpers.c
@@ -28,6 +28,8 @@
#include <semaphore.h>
#include <mqueue.h>
+#define EUREPHIA_FWINTF
+#include <eurephiafw_struct.h>
#include <eurephia_context.h>
#include "eurephia_log.h"
#include "eurephiafw.h"
diff --git a/plugin/firewall/iptables/efw-iptables.c b/plugin/firewall/iptables/efw-iptables.c
index f7ebb0d..a5171f7 100644
--- a/plugin/firewall/iptables/efw-iptables.c
+++ b/plugin/firewall/iptables/efw-iptables.c
@@ -28,9 +28,11 @@
#include <sys/wait.h>
#include <time.h>
+#define EUREPHIA_FWINTF
+#include <eurephiafw_struct.h>
+#include <eurephia_context.h>
#include <eurephia_nullsafe.h>
#include <eurephia_log.h>
-#include <eurephia_context.h>
#include <eurephiafw_helpers.h>
#define INTERFACEVER "1.0"