aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-04 18:44:18 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-04 18:44:18 +0000
commit8d5360b2f8dbff3a314f686c71c5973911726f06 (patch)
tree6f60b32cf5a487e768f4c1f8fa0a79041e1f3f2e /src/libserver/cfg_rcl.h
parent67a21e3c3c5ab482d45e3532d4ceae4b132f9ff7 (diff)
downloadrspamd-8d5360b2f8dbff3a314f686c71c5973911726f06.tar.gz
rspamd-8d5360b2f8dbff3a314f686c71c5973911726f06.zip
Add 'required' and 'default' values for doc strings
Diffstat (limited to 'src/libserver/cfg_rcl.h')
-rw-r--r--src/libserver/cfg_rcl.h10
1 files changed, 7 insertions, 3 deletions
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_ */