aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongFilter.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-07 21:39:47 +0100
committerMax Kellermann <max@duempel.org>2014-01-09 09:05:58 +0100
commit322b0616322760dc162447563d8f4da7e024ca90 (patch)
tree2f87cb3ce061556161797aba9f57ee08de5b9e21 /src/SongFilter.hxx
parent43847f2244a34064af24704aac4cfad4a3c76f7d (diff)
downloadmpd-322b0616322760dc162447563d8f4da7e024ca90.tar.gz
mpd-322b0616322760dc162447563d8f4da7e024ca90.tar.xz
mpd-322b0616322760dc162447563d8f4da7e024ca90.zip
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.
Diffstat (limited to 'src/SongFilter.hxx')
-rw-r--r--src/SongFilter.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx
index b15127c07..16970c350 100644
--- a/src/SongFilter.hxx
+++ b/src/SongFilter.hxx
@@ -38,6 +38,7 @@
struct Tag;
struct TagItem;
struct Song;
+class DetachedSong;
class SongFilter {
public:
@@ -80,6 +81,9 @@ public:
gcc_pure
bool Match(const Song &song) const;
+
+ gcc_pure
+ bool Match(const DetachedSong &song) const;
};
private:
@@ -105,6 +109,9 @@ public:
gcc_pure
bool Match(const Song &song) const;
+ gcc_pure
+ bool Match(const DetachedSong &song) const;
+
const std::list<Item> &GetItems() const {
return items;
}