aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
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