diff options
Diffstat (limited to 'src/queue/Playlist.hxx')
-rw-r--r-- | src/queue/Playlist.hxx | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/queue/Playlist.hxx b/src/queue/Playlist.hxx index 09980155e..4a4c7f30c 100644 --- a/src/queue/Playlist.hxx +++ b/src/queue/Playlist.hxx @@ -146,14 +146,20 @@ public: void DatabaseModified(const Database &db); #endif - PlaylistResult AppendSong(PlayerControl &pc, - DetachedSong &&song, - unsigned *added_id=nullptr); - - PlaylistResult AppendURI(PlayerControl &pc, - const SongLoader &loader, - const char *uri_utf8, - unsigned *added_id=nullptr); + /** + * @return the new song id or 0 on error + */ + unsigned AppendSong(PlayerControl &pc, + DetachedSong &&song, + Error &error); + + /** + * @return the new song id or 0 on error + */ + unsigned AppendURI(PlayerControl &pc, + const SongLoader &loader, + const char *uri_utf8, + Error &error); protected: void DeleteInternal(PlayerControl &pc, |