From 8929f88e6d78d538d943e80b66fcf21706e53974 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 5 Sep 2013 09:37:54 +0200 Subject: PlaylistPlugin: add interface SongEnumerator Replaces struct playlist_provider. --- src/playlist/AsxPlaylistPlugin.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/playlist/AsxPlaylistPlugin.cxx') 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, -- cgit v1.2.3