path: moved playlist_dir to mapper.c

Added the function map_spl_utf8_to_fs() which replaces
utf8_to_fs_playlist_path().
This commit is contained in:
Max Kellermann
2008-10-31 16:47:14 +01:00
parent ef54271619
commit d8e877e335
7 changed files with 81 additions and 58 deletions

View File

@@ -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