aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseSelection.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/DatabaseSelection.cxx (renamed from src/decoder_print.h)15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/decoder_print.h b/src/DatabaseSelection.cxx
index 31713d5d8..bd756f5f9 100644
--- a/src/decoder_print.h
+++ b/src/DatabaseSelection.cxx
@@ -17,12 +17,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MPD_DECODER_PRINT_H
-#define MPD_DECODER_PRINT_H
+#include "DatabaseSelection.hxx"
+#include "SongFilter.hxx"
-struct client;
-
-void
-decoder_list_print(struct client *client);
-
-#endif
+bool
+DatabaseSelection::Match(const song &song) const
+{
+ return filter == nullptr || filter->Match(song);
+}