summaryrefslogtreecommitdiffstats
path: root/src/cfg_rcl.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-09-01 14:40:37 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-09-01 14:40:37 +0100
commitce054a80baae86f7abfa4f9bcabc909c6ec6ceb4 (patch)
tree5d962981fbd12a3958a5d157662453d95dfc10e7 /src/cfg_rcl.h
parent50bae963e44e0312544b79a2ee4b4a3e8e37690f (diff)
downloadrspamd-ce054a80baae86f7abfa4f9bcabc909c6ec6ceb4.tar.gz
rspamd-ce054a80baae86f7abfa4f9bcabc909c6ec6ceb4.zip
Add parser for default values in rcl section.
Diffstat (limited to 'src/cfg_rcl.h')
-rw-r--r--src/cfg_rcl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cfg_rcl.h b/src/cfg_rcl.h
index 08ad3594c..11294e2fc 100644
--- a/src/cfg_rcl.h
+++ b/src/cfg_rcl.h
@@ -105,6 +105,19 @@ struct rspamd_rcl_section *rspamd_rcl_config_get_section (struct rspamd_rcl_sect
gboolean rspamd_read_rcl_config (struct rspamd_rcl_section *top,
struct config_file *cfg, rspamd_cl_object_t *obj, GError **err);
+
+/**
+ * Parse default structure for a section
+ * @param section section
+ * @param cfg config file
+ * @param obj object to parse
+ * @param ptr ptr to pass
+ * @param err error ptr
+ * @return TRUE if the object has been parsed
+ */
+gboolean rspamd_rcl_section_parse_defaults (struct rspamd_rcl_section *section,
+ struct config_file *cfg, rspamd_cl_object_t *obj, gpointer ptr,
+ GError **err);
/**
* Here is a section of common handlers that accepts rcl_struct_parser
* which itself contains a struct pointer and the offset of a member in a