summaryrefslogtreecommitdiffstats
path: root/plugin/eurephia_struct.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/eurephia_struct.h')
-rw-r--r--plugin/eurephia_struct.h54
1 files changed, 2 insertions, 52 deletions
diff --git a/plugin/eurephia_struct.h b/plugin/eurephia_struct.h
index 3a23459..75ca250 100644
--- a/plugin/eurephia_struct.h
+++ b/plugin/eurephia_struct.h
@@ -32,58 +32,8 @@
#define SESSION_REGISTERED 3
#define SESSION_LOGGEDOUT 4
-typedef struct __eurephiaVALUES {
- unsigned int evgid;
- unsigned int evid;
- char *key;
- char *val;
- struct __eurephiaVALUES *next;
-} eurephiaVALUES;
-
-
-//
-// Struct which contains session unique data
-//
-typedef struct {
- char *sessionkey;
- int sessionstatus;
- eurephiaVALUES *sessvals;
-} eurephiaSESSION;
-
-
-//
-// Struct containing connection to the database we are using
-//
-typedef struct {
- void *dbhandle;
- char *dbname;
- eurephiaVALUES *config;
-} eDBconn;
-
-
-
-//
-// structs used by the firewall interface
-//
-typedef struct {
- mqd_t msgq;
- sem_t *semp_worker;
- sem_t *semp_master;
- char *fw_command;
- void *ctx;
-} efw_threaddata;
-
-typedef struct {
- efw_threaddata thrdata;
- pid_t fwproc_pid;
-
- // Where to update firewall if we block blackisted
- // IP addr in firewall too
- char *fwblacklist;
- char *fwblacklist_sendto;
- eurephiaVALUES *blacklisted; // Contains all IP addresses we have blacklisted
-} eurephiaFWINTF;
-
+#include "eurephiadb_struct.h"
+#include "eurephiafw_struct.h"
//
// main structure for the eurephia module context