summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/inspircd_io.h12
1 files changed, 12 insertions, 0 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