aboutsummaryrefslogtreecommitdiffstats
path: root/src/sticker/StickerPrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-06 22:10:25 +0200
committerMax Kellermann <max@duempel.org>2015-08-12 08:41:05 +0200
commit7652a2986b0d0ad55b2776685130f1c68d7108c7 (patch)
treeb4d45e60e97757454f1ff8e4dc793a1e7d852c36 /src/sticker/StickerPrint.cxx
parentb1480167be487d09ff46bb86ad02041fb28acff1 (diff)
downloadmpd-7652a2986b0d0ad55b2776685130f1c68d7108c7.tar.gz
mpd-7652a2986b0d0ad55b2776685130f1c68d7108c7.tar.xz
mpd-7652a2986b0d0ad55b2776685130f1c68d7108c7.zip
client/Response: new Client wrapper class for writing responses
Diffstat (limited to 'src/sticker/StickerPrint.cxx')
-rw-r--r--src/sticker/StickerPrint.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sticker/StickerPrint.cxx b/src/sticker/StickerPrint.cxx
index 1682abf77..f0043ebc8 100644
--- a/src/sticker/StickerPrint.cxx
+++ b/src/sticker/StickerPrint.cxx
@@ -20,25 +20,25 @@
#include "config.h"
#include "StickerPrint.hxx"
#include "StickerDatabase.hxx"
-#include "client/Client.hxx"
+#include "client/Response.hxx"
void
-sticker_print_value(Client &client,
+sticker_print_value(Response &r,
const char *name, const char *value)
{
- client_printf(client, "sticker: %s=%s\n", name, value);
+ r.Format("sticker: %s=%s\n", name, value);
}
static void
print_sticker_cb(const char *name, const char *value, void *data)
{
- Client &client = *(Client *)data;
+ auto &r = *(Response *)data;
- sticker_print_value(client, name, value);
+ sticker_print_value(r, name, value);
}
void
-sticker_print(Client &client, const Sticker &sticker)
+sticker_print(Response &r, const Sticker &sticker)
{
- sticker_foreach(sticker, print_sticker_cb, &client);
+ sticker_foreach(sticker, print_sticker_cb, &r);
}