aboutsummaryrefslogtreecommitdiffstats
path: root/src/path.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/path.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/path.c b/src/path.c
index c02103331..8c7b61cdf 100644
--- a/src/path.c
+++ b/src/path.c
@@ -22,6 +22,7 @@
#include "conf.h"
#include "utf8.h"
#include "utils.h"
+#include "playlist.h"
#include <stdlib.h>
#include <string.h>
@@ -278,3 +279,10 @@ char *sanitizePathDup(char *path)
return xrealloc(ret, len + 1);
}
+
+void utf8_to_fs_playlist_path(char *path_max_tmp, const char *utf8path)
+{
+ utf8_to_fs_charset(path_max_tmp, (char *)utf8path);
+ rpp2app_r(path_max_tmp, path_max_tmp);
+ strncat(path_max_tmp, "." PLAYLIST_FILE_SUFFIX, MPD_PATH_MAX - 1);
+}