diff options
author | Max Kellermann <max@duempel.org> | 2013-09-05 09:37:54 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-05 09:40:55 +0200 |
commit | 8929f88e6d78d538d943e80b66fcf21706e53974 (patch) | |
tree | 01232fd55f40dfa1cded59cb28a79b257ebb19e4 /src/playlist/DespotifyPlaylistPlugin.cxx | |
parent | 5348808bf594de927cc64eebae9118d6971343b1 (diff) | |
download | mpd-8929f88e6d78d538d943e80b66fcf21706e53974.tar.gz mpd-8929f88e6d78d538d943e80b66fcf21706e53974.tar.xz mpd-8929f88e6d78d538d943e80b66fcf21706e53974.zip |
PlaylistPlugin: add interface SongEnumerator
Replaces struct playlist_provider.
Diffstat (limited to 'src/playlist/DespotifyPlaylistPlugin.cxx')
-rw-r--r-- | src/playlist/DespotifyPlaylistPlugin.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/playlist/DespotifyPlaylistPlugin.cxx b/src/playlist/DespotifyPlaylistPlugin.cxx index 5759a10c0..3e6527ea7 100644 --- a/src/playlist/DespotifyPlaylistPlugin.cxx +++ b/src/playlist/DespotifyPlaylistPlugin.cxx @@ -20,7 +20,8 @@ #include "config.h" #include "DespotifyPlaylistPlugin.hxx" #include "DespotifyUtils.hxx" -#include "MemoryPlaylistProvider.hxx" +#include "PlaylistPlugin.hxx" +#include "MemorySongEnumerator.hxx" #include "Tag.hxx" #include "Song.hxx" @@ -86,7 +87,7 @@ parse_playlist(struct despotify_session *session, return true; } -static struct playlist_provider * +static SongEnumerator * despotify_playlist_open_uri(const char *url, gcc_unused Mutex &mutex, gcc_unused Cond &cond) { @@ -122,7 +123,7 @@ despotify_playlist_open_uri(const char *url, return nullptr; songs.reverse(); - return new MemoryPlaylistProvider(std::move(songs)); + return new MemorySongEnumerator(std::move(songs)); } static const char *const despotify_schemes[] = { @@ -137,8 +138,6 @@ const struct playlist_plugin despotify_playlist_plugin = { nullptr, despotify_playlist_open_uri, nullptr, - nullptr, - nullptr, despotify_schemes, nullptr, |