aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapper.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-31 16:47:14 +0100
committerMax Kellermann <max@duempel.org>2008-10-31 16:47:14 +0100
commitd8e877e3355d0858c78a6d9a7060a6683024dd30 (patch)
treecdc996fa583c1f996da6ff18500b7cf360e182e1 /src/mapper.h
parentef542716196b90b71480ee952db64c3df736a12e (diff)
downloadmpd-d8e877e3355d0858c78a6d9a7060a6683024dd30.tar.gz
mpd-d8e877e3355d0858c78a6d9a7060a6683024dd30.tar.xz
mpd-d8e877e3355d0858c78a6d9a7060a6683024dd30.zip
path: moved playlist_dir to mapper.c
Added the function map_spl_utf8_to_fs() which replaces utf8_to_fs_playlist_path().
Diffstat (limited to 'src/mapper.h')
-rw-r--r--src/mapper.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mapper.h b/src/mapper.h
index 03835a6eb..e8249b27d 100644
--- a/src/mapper.h
+++ b/src/mapper.h
@@ -23,6 +23,8 @@
#ifndef MPD_MAPPER_H
#define MPD_MAPPER_H
+#define PLAYLIST_FILE_SUFFIX "m3u"
+
struct directory;
struct song;
@@ -75,4 +77,17 @@ map_song_fs(const struct song *song, char *buffer);
const char *
map_fs_to_utf8(const char *path_fs, char *buffer);
+/**
+ * Returns the playlist directory.
+ */
+const char *
+map_spl_path(void);
+
+/**
+ * Maps a playlist name (without the ".m3u" suffix) to a file system
+ * path.
+ */
+const char *
+map_spl_utf8_to_fs(const char *name, char *buffer);
+
#endif