aboutsummaryrefslogtreecommitdiff
path: root/src/mapper.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-24 22:04:24 +0100
committerMax Kellermann <max@duempel.org>2008-12-24 22:04:24 +0100
commit1bd3cde062deb3b61872f89ad02fc5d70cff375d (patch)
treed7b355cc44a271f13eba83ef476c6f0ae419fe35 /src/mapper.h
parenta94e59ca2192a9ba80d5ab1919dc25918ce4163c (diff)
playlist: fix stored playlist modifications with absolute paths
When save_absolute_paths_in_playlists was enabled in mpd.conf, MPD broke all playlists when manipulated using the "playlistdelete" command. The reason was that map_directory_child_fs() was used, which doesn't accept slashes in the file name. Use the new map_uri_fs() function instead.
Diffstat (limited to 'src/mapper.h')
-rw-r--r--src/mapper.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mapper.h b/src/mapper.h
index e8249b27..2aecd9a5 100644
--- a/src/mapper.h
+++ b/src/mapper.h
@@ -33,6 +33,14 @@ void mapper_init(void);
void mapper_finish(void);
/**
+ * Determines the absolute file system path of a relative URI. This
+ * is basically done by converting the URI to the file system charset
+ * and prepending the music directory.
+ */
+const char *
+map_uri_fs(const char *uri, char *buffer);
+
+/**
* Determines the file system path of a directory object.
*
* @param directory the directory object