diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-24 17:35:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-08-24 17:35:02 +0100 |
commit | a1be94b4c4b59de216e0b8b721a951b2325f7215 (patch) | |
tree | 6bb00558dd03918b500468e7385d716e83499265 /src/libserver/cfg_file.h | |
parent | 71f5454dc80cb2cc90363e219d85533b0e7a7895 (diff) | |
download | rspamd-a1be94b4c4b59de216e0b8b721a951b2325f7215.tar.gz rspamd-a1be94b4c4b59de216e0b8b721a951b2325f7215.zip |
Rework lists and hashes.
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r-- | src/libserver/cfg_file.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 1181c126c..0938b22df 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -11,7 +11,6 @@ #include "upstream.h" #include "symbols_cache.h" #include "cfg_rcl.h" -#include "utlist.h" #include "ucl.h" #define DEFAULT_BIND_PORT 11333 @@ -211,21 +210,6 @@ struct rspamd_worker_bind_conf { struct rspamd_worker_bind_conf *next; }; -struct rspamd_worker_param_parser { - rspamd_rcl_handler_t handler; /**< handler function */ - struct rspamd_rcl_struct_parser parser; /**< parser attributes */ - const gchar *name; /**< parameter's name */ - UT_hash_handle hh; /**< hash by name */ -}; - -struct rspamd_worker_cfg_parser { - struct rspamd_worker_param_parser *parsers; /**< parsers hash */ - gint type; /**< workers quark */ - gboolean (*def_obj_parser)(const ucl_object_t *obj, gpointer ud); /**< default object parser */ - gpointer def_ud; - UT_hash_handle hh; /**< hash by type */ -}; - /** * Config params for rspamd worker */ @@ -498,6 +482,11 @@ struct rspamd_classifier_config * rspamd_config_find_classifier ( gboolean rspamd_config_parse_ip_list (const gchar *ip_list, radix_tree_t **tree); +void rspamd_ucl_add_conf_macros (struct ucl_parser *parser, + struct rspamd_config *cfg); + +void rspamd_ucl_add_conf_variables (struct ucl_parser *parser); + #endif /* ifdef CFG_FILE_H */ /* * vi:ts=4 |