diff options
Diffstat (limited to '')
-rw-r--r-- | src/MemorySongEnumerator.hxx (renamed from src/playlist/MemoryPlaylistProvider.hxx) | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/playlist/MemoryPlaylistProvider.hxx b/src/MemorySongEnumerator.hxx index efbc46fe1..46086a064 100644 --- a/src/playlist/MemoryPlaylistProvider.hxx +++ b/src/MemorySongEnumerator.hxx @@ -20,20 +20,19 @@ #ifndef MPD_MEMORY_PLAYLIST_PROVIDER_HXX #define MPD_MEMORY_PLAYLIST_PROVIDER_HXX -#include "PlaylistPlugin.hxx" +#include "SongEnumerator.hxx" #include "SongPointer.hxx" #include <forward_list> -struct Song; - -class MemoryPlaylistProvider : public playlist_provider { +class MemorySongEnumerator final : public SongEnumerator { std::forward_list<SongPointer> songs; public: - MemoryPlaylistProvider(std::forward_list<SongPointer> &&_songs); + MemorySongEnumerator(std::forward_list<SongPointer> &&_songs) + :songs(std::move(_songs)) {} - Song *Read(); + virtual Song *NextSong() override; }; #endif |