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_rcl.h | |
parent | 71f5454dc80cb2cc90363e219d85533b0e7a7895 (diff) | |
download | rspamd-a1be94b4c4b59de216e0b8b721a951b2325f7215.tar.gz rspamd-a1be94b4c4b59de216e0b8b721a951b2325f7215.zip |
Rework lists and hashes.
Diffstat (limited to 'src/libserver/cfg_rcl.h')
-rw-r--r-- | src/libserver/cfg_rcl.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/libserver/cfg_rcl.h b/src/libserver/cfg_rcl.h index 6ba197be8..333a3e1ee 100644 --- a/src/libserver/cfg_rcl.h +++ b/src/libserver/cfg_rcl.h @@ -25,8 +25,7 @@ #define CFG_RCL_H_ #include "config.h" -#include "ucl/include/ucl.h" -#include "uthash.h" +#include "ucl.h" #define CFG_RCL_ERROR cfg_rcl_error_quark () static inline GQuark @@ -37,6 +36,7 @@ cfg_rcl_error_quark (void) struct rspamd_rcl_section; struct rspamd_config; +struct rspamd_rcl_default_handler_data; struct rspamd_rcl_struct_parser { gpointer user_struct; @@ -75,25 +75,7 @@ typedef gboolean (*rspamd_rcl_handler_t) (struct rspamd_config *cfg, typedef void (*rspamd_rcl_section_fin_t)(struct rspamd_config *cfg, gpointer ud); -struct rspamd_rcl_default_handler_data { - struct rspamd_rcl_struct_parser pd; - const gchar *key; - rspamd_rcl_handler_t handler; - UT_hash_handle hh; -}; -struct rspamd_rcl_section { - const gchar *name; /**< name of section */ - rspamd_rcl_handler_t handler; /**< handler of section attributes */ - enum ucl_type type; /**< type of attribute */ - gboolean required; /**< whether this param is required */ - gboolean strict_type; /**< whether we need strict type */ - UT_hash_handle hh; /** hash handle */ - struct rspamd_rcl_section *subsections; /**< hash table of subsections */ - struct rspamd_rcl_default_handler_data *default_parser; /**< generic parsing fields */ - rspamd_rcl_section_fin_t fin; /** called at the end of section parsing */ - gpointer fin_ud; -}; /** * Init common sections known to rspamd |