PlaylistFile: export spl_map_to_fs() and TranslatePlaylistError()
This commit is contained in:
@@ -109,7 +109,7 @@ spl_check_name(const char *name_utf8, Error &error)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static AllocatedPath
|
AllocatedPath
|
||||||
spl_map_to_fs(const char *name_utf8, Error &error)
|
spl_map_to_fs(const char *name_utf8, Error &error)
|
||||||
{
|
{
|
||||||
if (spl_map(error).IsNull() || !spl_check_name(name_utf8, error))
|
if (spl_map(error).IsNull() || !spl_check_name(name_utf8, error))
|
||||||
@@ -136,7 +136,7 @@ IsNotFoundError(const Error &error)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
TranslatePlaylistError(Error &error)
|
TranslatePlaylistError(Error &error)
|
||||||
{
|
{
|
||||||
if (IsNotFoundError(error)) {
|
if (IsNotFoundError(error)) {
|
||||||
|
@@ -27,6 +27,7 @@ class DetachedSong;
|
|||||||
class SongLoader;
|
class SongLoader;
|
||||||
class PlaylistVector;
|
class PlaylistVector;
|
||||||
class Error;
|
class Error;
|
||||||
|
class AllocatedPath;
|
||||||
|
|
||||||
typedef std::vector<std::string> PlaylistFileContents;
|
typedef std::vector<std::string> PlaylistFileContents;
|
||||||
|
|
||||||
@@ -45,6 +46,12 @@ spl_global_init();
|
|||||||
bool
|
bool
|
||||||
spl_valid_name(const char *name_utf8);
|
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
|
* Returns a list of stored_playlist_info struct pointers. Returns
|
||||||
* nullptr if an error occurred.
|
* nullptr if an error occurred.
|
||||||
|
Reference in New Issue
Block a user