diff options
author | Max Kellermann <max@duempel.org> | 2012-08-15 21:32:34 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-15 23:02:27 +0200 |
commit | a6ac0f89656b9ef374703d24bbb27316a705eadc (patch) | |
tree | 3706b1b8474ae06890595a8e20c8be011f6a162b /src/db/SimpleDatabasePlugin.hxx | |
parent | 4e1eb03287c1af889372ed4c63220a88d2032f78 (diff) | |
download | mpd-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 'src/db/SimpleDatabasePlugin.hxx')
-rw-r--r-- | src/db/SimpleDatabasePlugin.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/db/SimpleDatabasePlugin.hxx b/src/db/SimpleDatabasePlugin.hxx index 1e990de13..0b7e838b5 100644 --- a/src/db/SimpleDatabasePlugin.hxx +++ b/src/db/SimpleDatabasePlugin.hxx @@ -66,6 +66,11 @@ public: VisitPlaylist visit_playlist, GError **error_r) const override; + virtual bool VisitUniqueTags(const DatabaseSelection &selection, + enum tag_type tag_type, + VisitString visit_string, + GError **error_r) const override; + protected: bool Configure(const struct config_param *param, GError **error_r); |