*** VERSION 5.4.0 ***
[NeonServV5.git] / src / modules.h
index e729c2e509c9f332cab57d028647588eae121f31..5f6ebb6dd2bd8dc859c56764d84012905e5f6eee 100644 (file)
@@ -1,4 +1,4 @@
-/* modules.h - NeonServ v5.3
+/* modules.h - NeonServ v5.4
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
  */
 #ifndef _modules_h
 #define _modules_h
+#include "main.h"
 
-#define MODINFO_STATE_STARTED 0x01
+#define MODINFO_STATE_STARTED   0x01
+#define MODINFO_STATE_PROTECTED 0x02
 
 struct ModuleInfo {
     char *name;
@@ -36,7 +38,7 @@ struct ModuleInfo {
 
 #ifndef DND_FUNCTIONS
 void loadModules();
-int loadModule(char *name);
+struct ModuleInfo *loadModule(char *name);
 void start_modules();
 void loop_modules();
 void stop_modules();