From 0f069f0e8becfd1770a6ce396ead7aa67e3bde06 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Wed, 19 Nov 2008 00:48:29 +0000 Subject: 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 --- include/extern.h | 2 -- include/modules.h | 1 - include/services.h | 34 ---------------------------------- 3 files changed, 37 deletions(-) (limited to 'include') 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 @@ -539,40 +539,6 @@ struct ircdcapab_ { uint32 nickchars; }; -/*************************************************************************/ -/* 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 -- cgit