diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-29 18:30:13 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-29 18:30:13 +0000 |
commit | ebc0a487e134164469b34c87848836d601f54eaf (patch) | |
tree | d30ef71c852e9de2878b60bcc67d3afc27a742f3 /src/libserver/cfg_rcl.h | |
parent | d4d323b04e9eef2416b1a49f6cf1be1cc5c511fc (diff) | |
download | rspamd-ebc0a487e134164469b34c87848836d601f54eaf.tar.gz rspamd-ebc0a487e134164469b34c87848836d601f54eaf.zip |
Add configuration routine to parse keypairs.
Diffstat (limited to 'src/libserver/cfg_rcl.h')
-rw-r--r-- | src/libserver/cfg_rcl.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.h b/src/libserver/cfg_rcl.h index 97f092ec3..ca856a38d 100644 --- a/src/libserver/cfg_rcl.h +++ b/src/libserver/cfg_rcl.h @@ -215,6 +215,21 @@ gboolean rspamd_rcl_parse_struct_boolean (struct rspamd_config *cfg, GError **err); /** + * Parse a keypair field of a structure + * @param cfg config pointer + * @param obj object to parse + * @param ud struct_parser structure (flags mean the exact structure used) + * @param section the current section + * @param err error pointer + * @return TRUE if a value has been successfully parsed + */ +gboolean rspamd_rcl_parse_struct_keypair (struct rspamd_config *cfg, + const ucl_object_t *obj, + gpointer ud, + struct rspamd_rcl_section *section, + GError **err); + +/** * Utility functions */ |