diff options
author | Max Kellermann <max@duempel.org> | 2015-12-26 06:30:25 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-12-28 14:20:37 +0100 |
commit | 1f184f4aecdafa77405bf80f6cb91892ed91a2b4 (patch) | |
tree | 0f16fcdef99f6e32d2b4f06094b28258497f4bf1 /src/PlaylistFile.hxx | |
parent | db5a691693c1d2c334dd885c0e891fcf569807d7 (diff) |
PlaylistFile: throw exception on spl_map_to_fs() failure
Diffstat (limited to 'src/PlaylistFile.hxx')
-rw-r--r-- | src/PlaylistFile.hxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/PlaylistFile.hxx b/src/PlaylistFile.hxx index 02cd77ec2..ccea39a3b 100644 --- a/src/PlaylistFile.hxx +++ b/src/PlaylistFile.hxx @@ -47,7 +47,7 @@ bool spl_valid_name(const char *name_utf8); AllocatedPath -spl_map_to_fs(const char *name_utf8, Error &error); +spl_map_to_fs(const char *name_utf8); /** * Returns a list of stored_playlist_info struct pointers. Returns @@ -57,11 +57,10 @@ PlaylistVector ListPlaylistFiles(Error &error); PlaylistFileContents -LoadPlaylistFile(const char *utf8path, Error &error); +LoadPlaylistFile(const char *utf8path); -bool -spl_move_index(const char *utf8path, unsigned src, unsigned dest, - Error &error); +void +spl_move_index(const char *utf8path, unsigned src, unsigned dest); bool spl_clear(const char *utf8path, Error &error); @@ -69,11 +68,11 @@ spl_clear(const char *utf8path, Error &error); bool spl_delete(const char *name_utf8, Error &error); -bool -spl_remove_index(const char *utf8path, unsigned pos, Error &error); +void +spl_remove_index(const char *utf8path, unsigned pos); -bool -spl_append_song(const char *utf8path, const DetachedSong &song, Error &error); +void +spl_append_song(const char *utf8path, const DetachedSong &song); bool spl_append_uri(const char *path_utf8, |