summaryrefslogtreecommitdiff
path: root/include/inspircd_io.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-10 16:22:09 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-10 16:22:09 +0000
commitf5a2f43fc24698eefb9b463437f0fa8ec6533657 (patch)
tree0cd8866f55ded6e476acc826a3cb2e3f5bf2669a /include/inspircd_io.h
parent080629c5a119b314166698fe6acac642de3fd6c9 (diff)
Test stuff for improved multi-tags in core
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3632 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/inspircd_io.h')
-rw-r--r--include/inspircd_io.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/inspircd_io.h b/include/inspircd_io.h
index e98bb3d66..ac0587177 100644
--- a/include/inspircd_io.h
+++ b/include/inspircd_io.h
@@ -33,7 +33,8 @@
#define NONE 50
typedef bool (*Validator)(const char*, const char*, void*);
-typedef bool (*MultiValidator)(const char*, const char**, void**, int**);
+typedef bool (*MultiValidator)(const char*, char**, void**, int*);
+typedef bool (*MultiNotify)(const char*);
enum ConfigDataType { DT_NOTHING, DT_INTEGER, DT_CHARPTR, DT_BOOLEAN };
@@ -46,11 +47,12 @@ struct InitialConfig {
};
struct MultiConfig {
- char* tag;
- char** items;
- void** values;
- ConfigDataType** datatype;
- MultiValidator validation_function;
+ const char* tag;
+ char* items[12];
+ int datatype[12];
+ MultiNotify init_function;
+ MultiValidator validation_function;
+ MultiNotify finish_function;
};
/** This class holds the bulk of the runtime configuration for the ircd.