summaryrefslogtreecommitdiff
path: root/src/TagPrint.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/TagPrint.cxx')
-rw-r--r--src/TagPrint.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/TagPrint.cxx b/src/TagPrint.cxx
index 412098a97..16b78b654 100644
--- a/src/TagPrint.cxx
+++ b/src/TagPrint.cxx
@@ -21,6 +21,7 @@
#include "tag/Tag.hxx"
#include "tag/Settings.hxx"
#include "client/Response.hxx"
+#include "util/StringView.hxx"
void
tag_print_types(Response &r) noexcept
@@ -32,6 +33,13 @@ tag_print_types(Response &r) noexcept
}
void
+tag_print(Response &r, TagType type, StringView value) noexcept
+{
+ r.Format("%s: %.*s\n", tag_item_names[type],
+ int(value.size), value.data);
+}
+
+void
tag_print(Response &r, TagType type, const char *value) noexcept
{
r.Format("%s: %s\n", tag_item_names[type], value);