summaryrefslogtreecommitdiff
path: root/spa/lib/debug.c
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2017-03-23 08:54:04 +0100
committerWim Taymans <wtaymans@redhat.com>2017-03-23 08:54:04 +0100
commit7270986c3aace1c03685f35acd1ddc25aef81956 (patch)
tree0e684bb6ad27ddb5151a192ea4f152b3dc957adc /spa/lib/debug.c
parentc44a7c9735b52a96616c21eb66b4873d4de88308 (diff)
monitor: use dynamic types
Make the monitor item a POD object and use dynamic types.
Diffstat (limited to 'spa/lib/debug.c')
-rw-r--r--spa/lib/debug.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/spa/lib/debug.c b/spa/lib/debug.c
index 962362e2..9cddd384 100644
--- a/spa/lib/debug.c
+++ b/spa/lib/debug.c
@@ -195,6 +195,7 @@ struct pod_type_name {
{ "float", "Float" },
{ "double", "Double" },
{ "string", "String" },
+ { "pointer", "Pointer" },
{ "rectangle", "Rectangle" },
{ "fraction", "Fraction" },
{ "bitmask", "Bitmask" },
@@ -231,6 +232,13 @@ print_pod_value (uint32_t size, uint32_t type, void *body, int prefix)
case SPA_POD_TYPE_STRING:
printf ("%-*sString \"%s\"\n", prefix, "", (char *) body);
break;
+ case SPA_POD_TYPE_POINTER:
+ {
+ SpaPODPointerBody *b = body;
+ printf ("%-*sPointer %s %p\n", prefix, "",
+ spa_id_map_get_uri (spa_id_map_get_default(), b->type), b->value);
+ break;
+ }
case SPA_POD_TYPE_RECTANGLE:
{
SpaRectangle *r = body;