tried to reorder the program structure and build process
[NeonServV5.git] / src / EventLogger.h
diff --git a/src/EventLogger.h b/src/EventLogger.h
new file mode 100644 (file)
index 0000000..71da262
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef _EventLogger_h
+#define _EventLogger_h
+
+#include "main.h"
+struct ClientSocket;
+struct UserNode;
+struct ChanNode;
+
+struct Event {
+    struct ClientSocket *client;
+    struct UserNode *user;
+    struct ChanNode *chan;
+    time_t event_time;
+    char *command;
+    char *arguments;
+    unsigned int flags; /* defined in modcmd.h */
+    
+    struct Event *next;
+};
+
+struct Event *createEvent(struct ClientSocket *client, struct UserNode *user, struct ChanNode *chan, char *command, char **args, int argc, int flags);
+void logEvent(struct Event *event);
+void destroyEvents();
+
+#endif
\ No newline at end of file