summaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-15 14:55:51 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-15 14:55:51 +0000
commit61f5955c49d8846fec3e4deaa9d49c7ac3823888 (patch)
tree2b70b106b550f68eafea4c4a106690066441ecee /src/libserver/cfg_rcl.h
parent612bbd0102d0090b753de4ccc10147461e4a3932 (diff)
downloadrspamd-61f5955c49d8846fec3e4deaa9d49c7ac3823888.tar.gz
rspamd-61f5955c49d8846fec3e4deaa9d49c7ac3823888.zip
[Feature] Allow raw ucl options in the config
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 e91779b87..ee0a1b526 100644
--- a/src/libserver/cfg_rcl.h
+++ b/src/libserver/cfg_rcl.h
@@ -308,6 +308,21 @@ gboolean rspamd_rcl_parse_struct_mime_addr (rspamd_mempool_t *pool,
GError **err);
/**
+ * Parse a raw ucl object
+ * @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_ucl (rspamd_mempool_t *pool,
+ const ucl_object_t *obj,
+ gpointer ud,
+ struct rspamd_rcl_section *section,
+ GError **err);
+
+/**
* Utility functions
*/