diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-18 20:48:54 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-18 20:48:54 +0000 |
commit | ca0889d458ab768f32f399c0afe5f4e36dcd07d9 (patch) | |
tree | ccb4caf7a361129a6dd5ecd19581f1bf108895f9 /include | |
parent | 6b5767fdd2f372ef5648f438dc68942f39658698 (diff) |
Added IOHookModule stuff to allow for different modules to hook different ports
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2564 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd_io.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/inspircd_io.h b/include/inspircd_io.h index 19338e54b..158794555 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -22,6 +22,7 @@ #include <vector> #include "inspircd.h" #include "globals.h" +#include "modules.h" /** Flags for use with log() */ @@ -250,6 +251,10 @@ class ServerConfig : public classbase */ int ports[255]; + /** A list of ports claimed by IO Modules + */ + std::map<int,Module*> IOHookModule; + ServerConfig(); /** Clears the include stack in preperation for @@ -269,6 +274,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); }; |