added support for an external statistics script
[NeonServV5.git] / src / main.h
index e49f5b46a0257032f9d07384d8a2c49cda6b1666..2e627939b8d49df4bdf77093f8cf161259c1b72b 100644 (file)
@@ -1,4 +1,4 @@
-/* main.h - NeonServ v5.1
+/* main.h - NeonServ v5.2
  * Copyright (C) 2011  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -17,8 +17,8 @@
 #ifndef _main_h
 #define _main_h
 
-#define NEONSERV_VERSION "5.1"
-#define VERSION_PATCHLEVEL 352
+#define NEONSERV_VERSION "5.2"
+#define VERSION_PATCHLEVEL 414
 
 #ifndef BOTWAR_ALERT_CHAN
 #define BOTWAR_ALERT_CHAN NULL
@@ -37,6 +37,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
+#include <sys/wait.h>
 #endif
 #include <unistd.h>
 #include <stdarg.h>
 #define TEMPUSER_LIST_INDEX VALID_NICK_CHARS_FIRST_LEN
 
 extern time_t start_time;
+extern int statistics_enabled;
 
 int stricmp (const char *s1, const char *s2);
 int stricmplen (const char *s1, const char *s2, int len);
 
+void restart_bot(int hard_restart);
+void stop_bot();
+void reload_config();
+
+void statistics_update();
+
 #endif
\ No newline at end of file