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.
This commit is contained in:
Max Kellermann
2014-01-08 23:35:37 +01:00
parent 10406c73b3
commit 8f9ba96c59
5 changed files with 30 additions and 20 deletions

View File

@@ -20,11 +20,18 @@
#ifndef MPD_TAG_PRINT_HXX
#define MPD_TAG_PRINT_HXX
#include <stdint.h>
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);