aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-04 15:42:15 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-04 15:42:15 +0000
commit70c5a7b68850e825b29b12c672fda71e366f58ff (patch)
treef100c3558bdf7cbcff45d7156ea5681c4ab4c60a /src/libserver/cfg_rcl.h
parentcc2301c1517da93dfe0867a5a91bafae18001e1a (diff)
downloadrspamd-70c5a7b68850e825b29b12c672fda71e366f58ff.tar.gz
rspamd-70c5a7b68850e825b29b12c672fda71e366f58ff.zip
[Rework] Kill metrics!11
Diffstat (limited to 'src/libserver/cfg_rcl.h')
-rw-r--r--src/libserver/cfg_rcl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libserver/cfg_rcl.h b/src/libserver/cfg_rcl.h
index e115fda97..51b348e9c 100644
--- a/src/libserver/cfg_rcl.h
+++ b/src/libserver/cfg_rcl.h
@@ -17,6 +17,7 @@
#define CFG_RCL_H_
#include "config.h"
+#include "cfg_file.h"
#include "ucl.h"
#include "mem_pool.h"
@@ -57,6 +58,7 @@ struct rspamd_rcl_struct_parser {
enum rspamd_rcl_flag flags;
};
+
/**
* Common handler type
* @param cfg configuration
@@ -457,4 +459,12 @@ ucl_object_t *rspamd_rcl_add_doc_by_example (struct rspamd_config *cfg,
gboolean rspamd_rcl_add_lua_plugins_path (struct rspamd_config *cfg,
const gchar *path,
GError **err);
+
+/*
+ * Read configuration file
+ */
+gboolean rspamd_config_read (struct rspamd_config *cfg,
+ const gchar *filename, const gchar *convert_to,
+ rspamd_rcl_section_fin_t logger_fin, gpointer logger_ud,
+ GHashTable *vars);
#endif /* CFG_RCL_H_ */