From f5ae1ce00b85699291a7cdf9782574e70a8c28f5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 19 Jan 2014 10:51:34 +0100 Subject: LightSong: new class to be used by DatabasePlugin callbacks Detach the Song class completely from the public API, only to be used by SimpleDatabase and the update thread. --- src/SongFilter.hxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/SongFilter.hxx') diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx index d53c98357..74d7187c9 100644 --- a/src/SongFilter.hxx +++ b/src/SongFilter.hxx @@ -38,6 +38,7 @@ struct Tag; struct TagItem; struct Song; +struct LightSong; class DetachedSong; class SongFilter { @@ -80,10 +81,10 @@ public: bool Match(const Tag &tag) const; gcc_pure - bool Match(const Song &song) const; + bool Match(const DetachedSong &song) const; gcc_pure - bool Match(const DetachedSong &song) const; + bool Match(const LightSong &song) const; }; private: @@ -107,10 +108,10 @@ public: bool Match(const Tag &tag) const; gcc_pure - bool Match(const Song &song) const; + bool Match(const DetachedSong &song) const; gcc_pure - bool Match(const DetachedSong &song) const; + bool Match(const LightSong &song) const; const std::list &GetItems() const { return items; -- cgit v1.2.3