X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FEventLogger.h;h=379e1afc6f01d5575d61edc43c4f616afc1ad3bc;hb=78e040af3fcc36ab684611c0f98b4381ff420878;hp=3bc730a69b522a2afd5563b307099fb0495375d3;hpb=c575e458c6257e75b97884847143b20965a5dfda;p=NeonServV5.git diff --git a/src/EventLogger.h b/src/EventLogger.h index 3bc730a..379e1af 100644 --- a/src/EventLogger.h +++ b/src/EventLogger.h @@ -1,5 +1,5 @@ -/* EventLogger.h - NeonServ v5.2 - * Copyright (C) 2011 Philipp Kreil (pk910) +/* EventLogger.h - NeonServ v5.5 + * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,21 +21,23 @@ struct ClientSocket; struct UserNode; struct ChanNode; +struct cmd_binding; struct Event { struct ClientSocket *client; struct UserNode *user; struct ChanNode *chan; time_t event_time; - char *command; + struct cmd_binding *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); +#ifndef DND_FUNCTIONS +struct Event *createEvent(struct ClientSocket *client, struct UserNode *user, struct ChanNode *chan, struct cmd_binding *command, char **args, int argc, int flags); +/* MODULAR ACCESSIBLE */ void logEvent(struct Event *event); void destroyEvents(); - -#endif \ No newline at end of file +#endif +#endif