{queue,song}_print: print relative paths if possible

If a song with an absolute path points inside the music directory,
print only the relative part.  This happens when partial songs from a
playlist file were loaded.
This commit is contained in:
Max Kellermann
2010-07-25 13:18:57 +02:00
parent 9de5bb9e23
commit b233c145fa
4 changed files with 22 additions and 1 deletions
+8
View File
@@ -41,6 +41,14 @@ void mapper_finish(void);
bool
mapper_has_music_directory(void);
/**
* If the specified absolute path points inside the music directory,
* this function converts it to a relative path. If not, it returns
* the unmodified string pointer.
*/
const char *
map_to_relative_path(const char *path_utf8);
/**
* Determines the absolute file system path of a relative URI. This
* is basically done by converting the URI to the file system charset