From 98f3135ad347fb39f941d03f5b8cadc6bc23f658 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Mar 2015 20:40:35 +0100 Subject: PlaylistFile: export spl_map_to_fs() and TranslatePlaylistError() --- src/PlaylistFile.cxx | 4 ++-- src/PlaylistFile.hxx | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx index ed1040a14..05395da89 100644 --- a/src/PlaylistFile.cxx +++ b/src/PlaylistFile.cxx @@ -109,7 +109,7 @@ spl_check_name(const char *name_utf8, Error &error) return true; } -static AllocatedPath +AllocatedPath spl_map_to_fs(const char *name_utf8, Error &error) { if (spl_map(error).IsNull() || !spl_check_name(name_utf8, error)) @@ -136,7 +136,7 @@ IsNotFoundError(const Error &error) #endif } -static void +void TranslatePlaylistError(Error &error) { if (IsNotFoundError(error)) { diff --git a/src/PlaylistFile.hxx b/src/PlaylistFile.hxx index 467307e61..5f905480f 100644 --- a/src/PlaylistFile.hxx +++ b/src/PlaylistFile.hxx @@ -27,6 +27,7 @@ class DetachedSong; class SongLoader; class PlaylistVector; class Error; +class AllocatedPath; typedef std::vector PlaylistFileContents; @@ -45,6 +46,12 @@ spl_global_init(); bool spl_valid_name(const char *name_utf8); +AllocatedPath +spl_map_to_fs(const char *name_utf8, Error &error); + +void +TranslatePlaylistError(Error &error); + /** * Returns a list of stored_playlist_info struct pointers. Returns * nullptr if an error occurred. -- cgit v1.2.3