diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-10 00:40:11 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-10 00:40:11 +0000 |
commit | cd8e5260894a71d5ce6437bc973d43bc15fc7c90 (patch) | |
tree | 5fdd7febd95d8fc5776219a3d4a3c52d5e386b43 | |
parent | 54c38a32e58fc3b6b26c8816161fb9e03e635e77 (diff) |
Moved typedefs etc into the header where they belong
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3617 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/inspircd_io.h | 12 | ||||
-rw-r--r-- | src/inspircd_io.cpp | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/include/inspircd_io.h b/include/inspircd_io.h index 9ec2ddb4a..89b6300de 100644 --- a/include/inspircd_io.h +++ b/include/inspircd_io.h @@ -32,6 +32,18 @@ #define SPARSE 40 #define NONE 50 +typedef bool (*Validator)(const char*, const char*, void*); + +enum ConfigDataType { DT_NOTHING, DT_INTEGER, DT_CHARPTR, DT_BOOLEAN }; + +struct InitialConfig { + char* tag; + char* value; + void* val; + int datatype; + Validator validation_function; +}; + /** This class holds the bulk of the runtime configuration for the ircd. * It allows for reading new config values, accessing configuration files, * and storage of the configuration data needed to run the ircd, such as diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 8daa1c19f..f6c719051 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -149,18 +149,6 @@ bool ServerConfig::CheckOnce(char* tag, bool bail, userrec* user) return true; } -typedef bool (*Validator)(const char*, const char*, void*); - -enum ConfigDataType { DT_NOTHING, DT_INTEGER, DT_CHARPTR, DT_BOOLEAN }; - -struct InitialConfig { - char* tag; - char* value; - void* val; - int datatype; - Validator validation_function; -}; - bool NoValidation(const char* tag, const char* value, void* data) { log(DEBUG,"No validation for <%s:%s>",tag,value); |