tried to reorder the program structure and build process
[NeonServV5.git] / src / EventLogger.h
1 #ifndef _EventLogger_h
2 #define _EventLogger_h
3
4 #include "main.h"
5 struct ClientSocket;
6 struct UserNode;
7 struct ChanNode;
8
9 struct Event {
10     struct ClientSocket *client;
11     struct UserNode *user;
12     struct ChanNode *chan;
13     time_t event_time;
14     char *command;
15     char *arguments;
16     unsigned int flags; /* defined in modcmd.h */
17     
18     struct Event *next;
19 };
20
21 struct Event *createEvent(struct ClientSocket *client, struct UserNode *user, struct ChanNode *chan, char *command, char **args, int argc, int flags);
22 void logEvent(struct Event *event);
23 void destroyEvents();
24
25 #endif