diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-28 09:57:07 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-11-28 09:57:07 +0100 |
commit | e2021e05c06cefffcb6a2b165fb15bbf84948590 (patch) | |
tree | 18e01e43a9473a1c0947a0cf5f24a10026c4bbe1 /common/eurephia_context.h | |
parent | 570a80dfadd2513f628b4d540fc719883fa8674a (diff) | |
download | eurephia-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.h | 5 |
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; |