aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-07 23:22:37 +0200
committerMax Kellermann <max@duempel.org>2012-08-08 00:55:02 +0200
commit733d6a6b16686c852b6d0fc0e4e9197add501a2f (patch)
treec089ab2961a5b98558f7587df3c5ef995628e8b3 /src/DatabaseCommands.cxx
parent8d2725234e6271434d87ecaac23ef882850e649a (diff)
downloadmpd-733d6a6b16686c852b6d0fc0e4e9197add501a2f.tar.gz
mpd-733d6a6b16686c852b6d0fc0e4e9197add501a2f.tar.xz
mpd-733d6a6b16686c852b6d0fc0e4e9197add501a2f.zip
DatabaseSelection: add "match" attribute
Let the database plugin do the match.
Diffstat (limited to 'src/DatabaseCommands.cxx')
-rw-r--r--src/DatabaseCommands.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/DatabaseCommands.cxx b/src/DatabaseCommands.cxx
index e0449e9c8..9dbe4e47f 100644
--- a/src/DatabaseCommands.cxx
+++ b/src/DatabaseCommands.cxx
@@ -67,8 +67,11 @@ handle_match(struct client *client, int argc, char *argv[], bool fold_case)
return COMMAND_RETURN_ERROR;
}
+ const DatabaseSelection selection("", true, list);
+
GError *error = NULL;
- enum command_return ret = findSongsIn(client, "", list, &error)
+ enum command_return ret =
+ db_selection_print(client, selection, true, &error)
? COMMAND_RETURN_OK
: print_error(client, error);