aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/read_tags.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/read_tags.c b/test/read_tags.c
index 9fcf1acf..b5ca8e55 100644
--- a/test/read_tags.c
+++ b/test/read_tags.c
@@ -145,13 +145,20 @@ print_duration(unsigned seconds, G_GNUC_UNUSED void *ctx)
static void
print_tag(enum tag_type type, const char *value, G_GNUC_UNUSED void *ctx)
{
- g_print("%s=%s\n", tag_item_names[type], value);
+ g_print("[%s]=%s\n", tag_item_names[type], value);
empty = false;
}
+static void
+print_pair(const char *name, const char *value, G_GNUC_UNUSED void *ctx)
+{
+ g_print("\"%s\"=%s\n", name, value);
+}
+
static const struct tag_handler print_handler = {
.duration = print_duration,
.tag = print_tag,
+ .pair = print_pair,
};
int main(int argc, char **argv)