aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseVisitor.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-15 21:32:34 +0200
committerMax Kellermann <max@duempel.org>2012-08-15 23:02:27 +0200
commita6ac0f89656b9ef374703d24bbb27316a705eadc (patch)
tree3706b1b8474ae06890595a8e20c8be011f6a162b /src/DatabaseVisitor.hxx
parent4e1eb03287c1af889372ed4c63220a88d2032f78 (diff)
downloadmpd-a6ac0f89656b9ef374703d24bbb27316a705eadc.tar.gz
mpd-a6ac0f89656b9ef374703d24bbb27316a705eadc.tar.xz
mpd-a6ac0f89656b9ef374703d24bbb27316a705eadc.zip
DatabasePlugin: add method VisitUniqueTags()
Optimize the ProxyDatabase by invoking "list" on the peer, instead of visiting all songs.
Diffstat (limited to '')
-rw-r--r--src/DatabaseVisitor.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DatabaseVisitor.hxx b/src/DatabaseVisitor.hxx
index 37b298a3c..10f907cef 100644
--- a/src/DatabaseVisitor.hxx
+++ b/src/DatabaseVisitor.hxx
@@ -33,4 +33,6 @@ typedef std::function<bool(struct song &, GError **)> VisitSong;
typedef std::function<bool(const playlist_metadata &, const directory &,
GError **)> VisitPlaylist;
+typedef std::function<bool(const char *, GError **)> VisitString;
+
#endif