summaryrefslogtreecommitdiffstats
path: root/common/eurephia_context.h
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 /common/eurephia_context.h
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 'common/eurephia_context.h')
-rw-r--r--common/eurephia_context.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/eurephia_context.h b/common/eurephia_context.h
index 2b6c5ed..2cef639 100644
--- a/common/eurephia_context.h
+++ b/common/eurephia_context.h
@@ -25,7 +25,6 @@
#define EUREPHIASTRUCT_H_
#include "eurephiadb_struct.h"
-#include "eurephiafw_struct.h"
//
// main structure for the eurephia module context
@@ -35,7 +34,11 @@ typedef struct {
void *eurephia_driver;
void *eurephia_fw_intf;
eDBconn *dbc;
+#ifdef EUREPHIA_FWINTF
eurephiaFWINTF *fwcfg;
+#else
+ void *fwcfg;
+#endif
FILE *log;
int loglevel;
int fatal_error;