Another year is about to end... So we have to update these damn copyright information :P
[NeonServV5.git] / src / IRCEvents.h
index e08803e9f34fd14fa306d9ce50b294584bb91e74..ceccd642e29b5375010d1f711d7c4e4c988d6544 100644 (file)
@@ -1,3 +1,19 @@
+/* IRCEvents.h - NeonServ v5.3
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License 
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. 
+ */
 #ifndef _IRCEvents_h
 #define _IRCEvents_h
 
@@ -91,6 +107,19 @@ int bind_bot_ready(bot_ready_func_t *func);
 void unbind_bot_ready(bot_ready_func_t *func);
 int event_bot_ready(struct ClientSocket *client);
 
+typedef int registered_func_t(struct UserNode *old_user, struct UserNode *new_user);
+int bind_registered(registered_func_t *func);
+void unbind_registered(registered_func_t *func);
+int event_registered(struct UserNode *old_user, struct UserNode *new_user);
 
+typedef int freeuser_func_t(struct UserNode *user);
+int bind_freeuser(freeuser_func_t *func);
+void unbind_freeuser(freeuser_func_t *func);
+int event_freeuser(struct UserNode *user);
+
+typedef int freechan_func_t(struct ChanNode *chan);
+int bind_freechan(freechan_func_t *func);
+void unbind_freechan(freechan_func_t *func);
+int event_freechan(struct ChanNode *chan);
 
 #endif
\ No newline at end of file