diff options
-rw-r--r-- | src/TagPrint.cxx | 12 | ||||
-rw-r--r-- | src/TagPrint.hxx | 3 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/TagPrint.cxx b/src/TagPrint.cxx index 297bf45e3..636eedf4e 100644 --- a/src/TagPrint.cxx +++ b/src/TagPrint.cxx @@ -42,12 +42,18 @@ tag_print(Client &client, TagType type, const char *value) client_printf(client, "%s: %s\n", tag_item_names[type], value); } +void +tag_print_values(Client &client, const Tag &tag) +{ + for (const auto &i : tag) + client_printf(client, "%s: %s\n", + tag_item_names[i.type], i.value); +} + void tag_print(Client &client, const Tag &tag) { if (tag.time >= 0) client_printf(client, SONG_TIME "%i\n", tag.time); - for (const auto &i : tag) - client_printf(client, "%s: %s\n", - tag_item_names[i.type], i.value); + tag_print_values(client, tag); } diff --git a/src/TagPrint.hxx b/src/TagPrint.hxx index 20e7f3288..6675bb7d8 100644 --- a/src/TagPrint.hxx +++ b/src/TagPrint.hxx @@ -33,6 +33,9 @@ void tag_print(Client &client, TagType type, const char *value); void +tag_print_values(Client &client, const Tag &tag); + +void tag_print(Client &client, const Tag &tag); #endif |