From 76dad93fd2f437167af999787168e1c3aae398ef Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 2 Jan 2016 17:37:28 +0000 Subject: Add method to insert documentation to the specific path --- src/libserver/cfg_rcl.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/libserver/cfg_rcl.h') diff --git a/src/libserver/cfg_rcl.h b/src/libserver/cfg_rcl.h index 38f545825..b114e765c 100644 --- a/src/libserver/cfg_rcl.h +++ b/src/libserver/cfg_rcl.h @@ -358,4 +358,16 @@ ucl_object_t* rspamd_rcl_add_doc_obj (ucl_object_t *doc_target, ucl_type_t type, rspamd_rcl_default_handler_t handler, gint flags); + +/** + * Adds new documentation option specified by path `doc_path` that should be + * splitted by dots + */ +ucl_object_t *rspamd_rcl_add_doc_by_path (struct rspamd_config *cfg, + const gchar *doc_path, + const char *doc_string, + const char *doc_name, + ucl_type_t type, + rspamd_rcl_default_handler_t handler, + gint flags); #endif /* CFG_RCL_H_ */ -- cgit v1.2.3