aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-29 18:30:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-29 18:30:13 +0000
commitebc0a487e134164469b34c87848836d601f54eaf (patch)
treed30ef71c852e9de2878b60bcc67d3afc27a742f3 /src/libserver/cfg_rcl.h
parentd4d323b04e9eef2416b1a49f6cf1be1cc5c511fc (diff)
downloadrspamd-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.h15
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
*/