From d8e877e3355d0858c78a6d9a7060a6683024dd30 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 31 Oct 2008 16:47:14 +0100 Subject: path: moved playlist_dir to mapper.c Added the function map_spl_utf8_to_fs() which replaces utf8_to_fs_playlist_path(). --- src/mapper.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/mapper.h') 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 -- cgit v1.2.3