From 8d5360b2f8dbff3a314f686c71c5973911726f06 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 4 Jan 2016 18:44:18 +0000 Subject: Add 'required' and 'default' values for doc strings --- src/libserver/cfg_rcl.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/libserver/cfg_rcl.h') diff --git a/src/libserver/cfg_rcl.h b/src/libserver/cfg_rcl.h index b114e765c..352ca95de 100644 --- a/src/libserver/cfg_rcl.h +++ b/src/libserver/cfg_rcl.h @@ -352,12 +352,14 @@ void rspamd_rcl_register_worker_parser (struct rspamd_config *cfg, gint type, * @param doc_target target object where to insert documentation (top object is used if this is NULL) * @param doc_object documentation object to insert */ -ucl_object_t* rspamd_rcl_add_doc_obj (ucl_object_t *doc_target, +ucl_object_t *rspamd_rcl_add_doc_obj (ucl_object_t *doc_target, const char *doc_string, const char *doc_name, ucl_type_t type, rspamd_rcl_default_handler_t handler, - gint flags); + gint flags, + const char *default_value, + gboolean required); /** * Adds new documentation option specified by path `doc_path` that should be @@ -369,5 +371,7 @@ ucl_object_t *rspamd_rcl_add_doc_by_path (struct rspamd_config *cfg, const char *doc_name, ucl_type_t type, rspamd_rcl_default_handler_t handler, - gint flags); + gint flags, + const char *default_value, + gboolean required); #endif /* CFG_RCL_H_ */ -- cgit v1.2.3