]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspircd_io.h
Converted to new Implements system
[user/henk/code/inspircd.git] / include / inspircd_io.h
index 19338e54b6859cf5cf7fada4ad81efebac6bd0b4..86ab543a5c1e35b4691acdf2a129e47133c0aa56 100644 (file)
@@ -22,6 +22,7 @@
 #include <vector>
 #include "inspircd.h"
 #include "globals.h"
+#include "modules.h"
 
 /** Flags for use with log()
  */
@@ -250,6 +251,14 @@ class ServerConfig : public classbase
         */
        int ports[255];
 
+       /** Boolean sets of which modules implement which functions
+        */
+       char implement_lists[255][255];
+
+       /** A list of ports claimed by IO Modules
+        */
+       std::map<int,Module*> IOHookModule;
+
        ServerConfig();
 
        /** Clears the include stack in preperation for
@@ -269,6 +278,9 @@ class ServerConfig : public classbase
        int ConfValueEnum(char* tag,std::stringstream *config);
        int EnumConf(std::stringstream *config_f,const char* tag);
        int EnumValues(std::stringstream *config, const char* tag, int index);
+       Module* GetIOHook(int port);
+       bool AddIOHook(int port, Module* iomod);
+       bool DelIOHook(int port);
 };