diff options
author | cebka@mailsupport.rambler.ru <cebka@mailsupport.rambler.ru> | 2008-09-18 18:25:00 +0400 |
---|---|---|
committer | cebka@mailsupport.rambler.ru <cebka@mailsupport.rambler.ru> | 2008-09-18 18:25:00 +0400 |
commit | bb2e8a89d2e4caf5345e565f4da5aeb6fc39655b (patch) | |
tree | c586d56f6ba24e651fd4ad099a5c0397c33851d4 /cfg_file.h | |
parent | 4ad814a6c631883bbb55ae3db2f8806c63f31c9a (diff) | |
download | rspamd-bb2e8a89d2e4caf5345e565f4da5aeb6fc39655b.tar.gz rspamd-bb2e8a89d2e4caf5345e565f4da5aeb6fc39655b.zip |
* Add support of variables and variable substitution in config file
Diffstat (limited to 'cfg_file.h')
-rw-r--r-- | cfg_file.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cfg_file.h b/cfg_file.h index 5fe89cf6d..1a211e680 100644 --- a/cfg_file.h +++ b/cfg_file.h @@ -114,6 +114,7 @@ struct config_file { LIST_HEAD (modulesq, perl_module) perl_modules; LIST_HEAD (cmodulesq, c_module) c_modules; GHashTable* modules_opts; + GHashTable* variables; }; int add_memcached_server (struct config_file *cf, char *str); @@ -125,6 +126,8 @@ char* get_module_opt (struct config_file *cfg, char *module_name, char *opt_name size_t parse_limit (const char *limit); unsigned int parse_seconds (const char *t); char parse_flag (const char *str); +char* substitute_variable (struct config_file *cfg, char *str, u_char recursive); +void post_load_config (struct config_file *cfg); int yylex (void); int yyparse (void); |