DatabasePlugin: add method VisitUniqueTags()

Optimize the ProxyDatabase by invoking "list" on the peer, instead of
visiting all songs.
This commit is contained in:
Max Kellermann
2012-08-15 21:32:34 +02:00
parent 4e1eb03287
commit a6ac0f8965
9 changed files with 216 additions and 53 deletions

View File

@@ -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);