aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabasePrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-07 23:10:34 +0200
committerMax Kellermann <max@duempel.org>2012-08-07 23:10:34 +0200
commitb3d76b7e5c46ff46139457b3aa910d92e290f38f (patch)
tree28f43e1b42d970c947840630243f46ae044b1855 /src/DatabasePrint.cxx
parent4d6c816abb72d299b3366fcd878035ebd63e8a3f (diff)
downloadmpd-b3d76b7e5c46ff46139457b3aa910d92e290f38f.tar.gz
mpd-b3d76b7e5c46ff46139457b3aa910d92e290f38f.tar.xz
mpd-b3d76b7e5c46ff46139457b3aa910d92e290f38f.zip
db_print.h: rename to DatabasePrint.hxx
Diffstat (limited to '')
-rw-r--r--src/DatabasePrint.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DatabasePrint.cxx b/src/DatabasePrint.cxx
index 258637535..b8f6d6f49 100644
--- a/src/DatabasePrint.cxx
+++ b/src/DatabasePrint.cxx
@@ -18,9 +18,9 @@
*/
#include "config.h"
+#include "DatabasePrint.hxx"
extern "C" {
-#include "db_print.h"
#include "db_selection.h"
#include "locate.h"
#include "database.h"
@@ -125,7 +125,7 @@ PrintPlaylistFull(struct client *client,
}
bool
-db_selection_print(struct client *client, const struct db_selection *selection,
+db_selection_print(struct client *client, const db_selection &selection,
bool full, GError **error_r)
{
using namespace std::placeholders;
@@ -135,7 +135,7 @@ db_selection_print(struct client *client, const struct db_selection *selection,
const auto p = std::bind(full ? PrintPlaylistFull : PrintPlaylistBrief,
client, _1, _2);
- return GetDatabase()->Visit(*selection, d, s, p, error_r);
+ return GetDatabase()->Visit(selection, d, s, p, error_r);
}
static bool
@@ -241,7 +241,7 @@ printAllIn(struct client *client, const char *uri_utf8, GError **error_r)
{
struct db_selection selection;
db_selection_init(&selection, uri_utf8, true);
- return db_selection_print(client, &selection, false, error_r);
+ return db_selection_print(client, selection, false, error_r);
}
bool
@@ -250,7 +250,7 @@ printInfoForAllIn(struct client *client, const char *uri_utf8,
{
struct db_selection selection;
db_selection_init(&selection, uri_utf8, true);
- return db_selection_print(client, &selection, true, error_r);
+ return db_selection_print(client, selection, true, error_r);
}
struct StringLess {