diff options
author | Max Kellermann <max@duempel.org> | 2014-02-27 17:27:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-27 17:27:23 +0100 |
commit | 1c772ef69947127e01e7171b007a2295d51e7ae7 (patch) | |
tree | 1461d15b1f94e29ef23a750b97dcf16d77de9fd5 /src/playlist/PlaylistQueue.hxx | |
parent | 809b89b5af5eaf7abc3240d786cda15f354b6624 (diff) | |
download | mpd-1c772ef69947127e01e7171b007a2295d51e7ae7.tar.gz mpd-1c772ef69947127e01e7171b007a2295d51e7ae7.tar.xz mpd-1c772ef69947127e01e7171b007a2295d51e7ae7.zip |
Playlist: use the Error library to return errors
Diffstat (limited to '')
-rw-r--r-- | src/playlist/PlaylistQueue.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/playlist/PlaylistQueue.hxx b/src/playlist/PlaylistQueue.hxx index 48e42c70e..28eb86fcc 100644 --- a/src/playlist/PlaylistQueue.hxx +++ b/src/playlist/PlaylistQueue.hxx @@ -26,6 +26,7 @@ #include "PlaylistError.hxx" +class Error; class SongLoader; class SongEnumerator; struct playlist; @@ -40,21 +41,22 @@ struct PlayerControl; * @param start_index the index of the first song * @param end_index the index of the last song (excluding) */ -PlaylistResult +bool playlist_load_into_queue(const char *uri, SongEnumerator &e, unsigned start_index, unsigned end_index, playlist &dest, PlayerControl &pc, - const SongLoader &loader); + const SongLoader &loader, + Error &error); /** * Opens a playlist with a playlist plugin and append to the specified * play queue. */ -PlaylistResult +bool playlist_open_into_queue(const char *uri, unsigned start_index, unsigned end_index, playlist &dest, PlayerControl &pc, - const SongLoader &loader); + const SongLoader &loader, Error &error); #endif |