diff options
author | Max Kellermann <max@duempel.org> | 2014-04-24 18:09:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-04-24 18:09:39 +0200 |
commit | 0de42d56fc000eca07ee6c9cc750d391be994397 (patch) | |
tree | 205701756a2cd988e097d717236cd04eca374794 /src/command | |
parent | 6378ad69bb053b89495c1ad957fe4774d0c19bb9 (diff) | |
download | mpd-0de42d56fc000eca07ee6c9cc750d391be994397.tar.gz mpd-0de42d56fc000eca07ee6c9cc750d391be994397.tar.xz mpd-0de42d56fc000eca07ee6c9cc750d391be994397.zip |
DatabasePrint: eliminate printAllIn(), printInfoForAllIn()
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/DatabaseCommands.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/command/DatabaseCommands.cxx b/src/command/DatabaseCommands.cxx index 23ff593a4..d586067c1 100644 --- a/src/command/DatabaseCommands.cxx +++ b/src/command/DatabaseCommands.cxx @@ -173,7 +173,8 @@ handle_listall(Client &client, gcc_unused int argc, char *argv[]) directory = argv[1]; Error error; - return printAllIn(client, directory, error) + return db_selection_print(client, DatabaseSelection(directory, true), + false, false, error) ? CommandResult::OK : print_error(client, error); } @@ -253,7 +254,8 @@ handle_listallinfo(Client &client, gcc_unused int argc, char *argv[]) directory = argv[1]; Error error; - return printInfoForAllIn(client, directory, error) + return db_selection_print(client, DatabaseSelection(directory, true), + true, false, error) ? CommandResult::OK : print_error(client, error); } |