From 8f9ba96c59f7d3563e1c3229675ecf7ad16fc334 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Jan 2014 23:35:37 +0100 Subject: SongUpdate: move code to handle_lsinfo() Don't create a temporary Song object in handle_lsinfo(). Instead, print all tags while parsing the remote file. --- src/TagPrint.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/TagPrint.hxx') diff --git a/src/TagPrint.hxx b/src/TagPrint.hxx index ccc0c9aa4..48ddc28ec 100644 --- a/src/TagPrint.hxx +++ b/src/TagPrint.hxx @@ -20,11 +20,18 @@ #ifndef MPD_TAG_PRINT_HXX #define MPD_TAG_PRINT_HXX +#include + +enum TagType : uint8_t; + struct Tag; class Client; void tag_print_types(Client &client); +void +tag_print(Client &client, TagType type, const char *value); + void tag_print(Client &client, const Tag &tag); -- cgit v1.2.3