From 322b0616322760dc162447563d8f4da7e024ca90 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Jan 2014 21:39:47 +0100 Subject: DetachedSong: fork of struct Song From now on, struct Song will be used by the database only, and DetachedSong will be used by everybody else. DetachedSong is easier to use, but Song has lower overhead. --- src/SongEnumerator.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SongEnumerator.hxx') diff --git a/src/SongEnumerator.hxx b/src/SongEnumerator.hxx index 0e268a31a..2515647d1 100644 --- a/src/SongEnumerator.hxx +++ b/src/SongEnumerator.hxx @@ -20,7 +20,7 @@ #ifndef MPD_SONG_ENUMERATOR_HXX #define MPD_SONG_ENUMERATOR_HXX -struct Song; +class DetachedSong; /** * An object which provides serial access to a number of #Song @@ -35,7 +35,7 @@ public: * freeing the returned #Song object. Returns nullptr if * there are no more songs. */ - virtual Song *NextSong() = 0; + virtual DetachedSong *NextSong() = 0; }; #endif -- cgit v1.2.3