aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseQueue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-07 11:33:00 +0100
committerMax Kellermann <max@duempel.org>2013-01-07 11:33:00 +0100
commit400ff1c81253d29b127834c0b5367e83bbb3430c (patch)
treed3660b68292829a6d1f76c4e32e26fef8bb53a19 /src/DatabaseQueue.cxx
parentd360f17a59fe6ed52ffa74c48c63164cf203d1e0 (diff)
downloadmpd-400ff1c81253d29b127834c0b5367e83bbb3430c.tar.gz
mpd-400ff1c81253d29b127834c0b5367e83bbb3430c.tar.xz
mpd-400ff1c81253d29b127834c0b5367e83bbb3430c.zip
DatabaseQueue: pass DatabaseSelection to Add...()
Diffstat (limited to 'src/DatabaseQueue.cxx')
-rw-r--r--src/DatabaseQueue.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/DatabaseQueue.cxx b/src/DatabaseQueue.cxx
index d7bc97f56..dd93cf662 100644
--- a/src/DatabaseQueue.cxx
+++ b/src/DatabaseQueue.cxx
@@ -42,16 +42,13 @@ AddToQueue(Partition &partition, song &song, GError **error_r)
}
bool
-AddFromDatabase(Partition &partition,
- const char *uri,
- const SongFilter *filter, GError **error_r)
+AddFromDatabase(Partition &partition, const DatabaseSelection &selection,
+ GError **error_r)
{
const Database *db = GetDatabase(error_r);
if (db == nullptr)
return false;
- const DatabaseSelection selection(uri, true, filter);
-
using namespace std::placeholders;
const auto f = std::bind(AddToQueue, std::ref(partition), _1, _2);
return db->Visit(selection, f, error_r);