diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-19 00:48:29 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-19 00:48:29 +0000 |
commit | 0f069f0e8becfd1770a6ce396ead7aa67e3bde06 (patch) | |
tree | ede474534d89b32bcdcc24d58e5cca6c427d6176 /include | |
parent | 1a2fdff0c653562ebde967850875e5445bc0c5ae (diff) |
Converted modules to use ConfigReader to access new config parser.
Added all module directives to new config.
Removed references to old config parser (not sure if I got them all, though).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1756 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r-- | include/extern.h | 2 | ||||
-rw-r--r-- | include/modules.h | 1 | ||||
-rw-r--r-- | include/services.h | 34 |
3 files changed, 0 insertions, 37 deletions
diff --git a/include/extern.h b/include/extern.h index 63b2c7af4..278b96c6c 100644 --- a/include/extern.h +++ b/include/extern.h @@ -402,8 +402,6 @@ E bool WallGetpass; E bool WallSetpass; E bool AddAkiller; -E int parse_directive(Directive * d, char *dir, int ac, char *av[MAXPARAMS], int linenum, int reload, char *s); - /** * Modules Stuff **/ diff --git a/include/modules.h b/include/modules.h index 9e2889646..524b23e1a 100644 --- a/include/modules.h +++ b/include/modules.h @@ -430,7 +430,6 @@ extern MDE char *mod_current_buffer; extern MDE int mod_current_op; extern MDE User *mod_current_user; -MDE int moduleGetConfigDirective(Directive *h); /*************************************************************************/ /*************************************************************************/ /* Command Managment Functions */ diff --git a/include/services.h b/include/services.h index 30e3103cb..7fbb00f05 100644 --- a/include/services.h +++ b/include/services.h @@ -540,40 +540,6 @@ struct ircdcapab_ { }; /*************************************************************************/ -/* Config Details */ -/*************************************************************************/ - -#define MAXPARAMS 8 - -/* Configuration directives */ - -typedef struct { - const char *name; - struct { - int type; /* PARAM_* below */ - int flags; /* Same */ - void *ptr; /* Pointer to where to store the value */ - } params[MAXPARAMS]; -} Directive; - -#define PARAM_NONE 0 -#define PARAM_INT 1 -#define PARAM_POSINT 2 /* Positive integer only */ -#define PARAM_PORT 3 /* 1..65535 only */ -#define PARAM_STRING 4 -#define PARAM_TIME 5 -#define PARAM_STRING_ARRAY 6 /* Array of string */ -#define PARAM_SET -1 /* Not a real parameter; just set the - * given integer variable to 1 */ -#define PARAM_DEPRECATED -2 /* Set for deprecated directives; `ptr' - * is a function pointer to call */ - -/* Flags: */ -#define PARAM_OPTIONAL 0x01 -/*#define PARAM_FULLONLY 0x02 unused */ -#define PARAM_RELOAD 0x04 /* Directive is reloadable */ - -/*************************************************************************/ /* File version for each database. Was one version for all before but was changed so they are now easier to maintain. =) */ |