summaryrefslogtreecommitdiffstats
path: root/src/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-13 17:59:29 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-13 17:59:29 +0000
commit3893d490abaa275fcadf180ff4ffc88e159f5c04 (patch)
tree82dc18af36134dd65de33ede1ce14f40af792a26 /src/cfg_file.h
parent3fba18a9c6ffa24e7f31afd7bd6bb4ede464e51d (diff)
downloadrspamd-3893d490abaa275fcadf180ff4ffc88e159f5c04.tar.gz
rspamd-3893d490abaa275fcadf180ff4ffc88e159f5c04.zip
Add support of path variables.
Support expanding of path variables in rspamd: - $CONFDIR: configuration directory - $LOCALSTATESDIR: local states directory - $INSTALLPREFIX: installation prefix - $VERSION: rspamd version
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r--src/cfg_file.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h
index 9dec61bc3..b7deb1ca6 100644
--- a/src/cfg_file.h
+++ b/src/cfg_file.h
@@ -551,6 +551,15 @@ gboolean check_classifier_statfiles (struct classifier_config *cf);
*/
struct classifier_config* find_classifier_conf (struct config_file *cfg, const gchar *name);
+/*
+ * Expand path that may contain configuration variables:
+ * $CONFDIR - configuration directory
+ * $LOCALSTATESDIR - local states directory
+ * $INSTALLPREFIX - installation prefix
+ * $VERSION - rspamd version
+ */
+const gchar* rspamd_expand_path (memory_pool_t *pool, const gchar *path);
+
#endif /* ifdef CFG_FILE_H */
/*
* vi:ts=4