aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-13 18:17:00 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-13 18:17:00 +0000
commit2a0a59ee52a424d10bc7d1d5d77c451b842d8e00 (patch)
treeb7c03551c82a4327c12a1aa438df29aa3b0078ed /src/util.h
parent3893d490abaa275fcadf180ff4ffc88e159f5c04 (diff)
downloadrspamd-2a0a59ee52a424d10bc7d1d5d77c451b842d8e00.tar.gz
rspamd-2a0a59ee52a424d10bc7d1d5d77c451b842d8e00.zip
Expand path in file maps.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 2526a981a..9278f41a3 100644
--- a/src/util.h
+++ b/src/util.h
@@ -439,4 +439,15 @@ time_t parse_http_date (const gchar *header, gsize len);
*/
gint rspamd_read_passphrase (gchar *buf, gint size, gint rwflag, gpointer key);
+/**
+ * Expand path that may contain configuration variables:
+ * $CONFDIR - configuration directory
+ * $LOCALSTATESDIR - local states directory
+ * $INSTALLPREFIX - installation prefix
+ * $VERSION - rspamd version
+ * @param pool to use
+ * @param path path to expand
+ */
+gchar* rspamd_expand_path (memory_pool_t *pool, const gchar *path);
+
#endif