diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-25 13:14:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-25 13:14:09 +0100 |
commit | 62e266e47646a68bd9de0d3d49490dcc606799d7 (patch) | |
tree | c5b7c36a30a6d29d4e86939b19977c76f49c32f6 /src/libserver/cfg_rcl.h | |
parent | 48a666c5ca646ff12ce68cc763edb82485fa7c6a (diff) | |
download | rspamd-62e266e47646a68bd9de0d3d49490dcc606799d7.tar.gz rspamd-62e266e47646a68bd9de0d3d49490dcc606799d7.zip |
[Feature] Add generic fucnction to parse IP maps
Issue: #679
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 22da0a445..2fb987b51 100644 --- a/src/libserver/cfg_rcl.h +++ b/src/libserver/cfg_rcl.h @@ -344,6 +344,21 @@ gboolean rspamd_rcl_parse_struct_ucl (rspamd_mempool_t *pool, GError **err); /** + * Parse IP list or map, accepts radix_tree_t ** as an argument + * @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_iplist (rspamd_mempool_t *pool, + const ucl_object_t *obj, + gpointer ud, + struct rspamd_rcl_section *section, + GError **err); + +/** * Utility functions */ |