summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-11-19 12:48:25 +0100
committerMax Kellermann <max@musicpd.org>2018-11-19 19:40:00 +0100
commit841694ccf2acb75f75a812421ddb8e99a3f9d48b (patch)
tree6bc21d82781c6ff9ae9e4deb221bf4f40ca7ac5b /src/db
parent12f4a8255a701463575d4ccc429af87e3302f54c (diff)
db/Interface: document CollectUniqueTags()
Diffstat (limited to 'src/db')
-rw-r--r--src/db/Interface.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/db/Interface.hxx b/src/db/Interface.hxx
index 7a700557f..2bfdd0a44 100644
--- a/src/db/Interface.hxx
+++ b/src/db/Interface.hxx
@@ -105,6 +105,11 @@ public:
return Visit(selection, VisitDirectory(), visit_song);
}
+ /**
+ * Collect unique values of the given tag type.
+ *
+ * Throws on error.
+ */
virtual std::map<std::string, std::set<std::string>> CollectUniqueTags(const DatabaseSelection &selection,
TagType tag_type,
TagType group=TAG_NUM_OF_ITEM_TYPES) const = 0;