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/AsxPlaylistPlugin.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/AsxPlaylistPlugin.cxx')
-rw-r--r-- | src/playlist/AsxPlaylistPlugin.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/playlist/AsxPlaylistPlugin.cxx b/src/playlist/AsxPlaylistPlugin.cxx index c0fc15e07..6920ec268 100644 --- a/src/playlist/AsxPlaylistPlugin.cxx +++ b/src/playlist/AsxPlaylistPlugin.cxx @@ -19,7 +19,8 @@ #include "config.h" #include "AsxPlaylistPlugin.hxx" -#include "MemoryPlaylistProvider.hxx" +#include "PlaylistPlugin.hxx" +#include "MemorySongEnumerator.hxx" #include "InputStream.hxx" #include "Song.hxx" #include "Tag.hxx" @@ -201,7 +202,7 @@ asx_parser_destroy(gpointer data) * */ -static struct playlist_provider * +static SongEnumerator * asx_open_stream(struct input_stream *is) { AsxParser parser; @@ -249,8 +250,8 @@ asx_open_stream(struct input_stream *is) } parser.songs.reverse(); - MemoryPlaylistProvider *playlist = - new MemoryPlaylistProvider(std::move(parser.songs)); + MemorySongEnumerator *playlist = + new MemorySongEnumerator(std::move(parser.songs)); g_markup_parse_context_free(context); @@ -274,8 +275,6 @@ const struct playlist_plugin asx_playlist_plugin = { nullptr, nullptr, asx_open_stream, - nullptr, - nullptr, nullptr, asx_suffixes, |