intersection improvements

Add uri type
This commit is contained in:
Wim Taymans 2017-02-28 16:38:23 +01:00
parent 7a7ede96e5
commit 282995d0d0
4 changed files with 55 additions and 12 deletions

View file

@ -319,6 +319,7 @@ struct pod_type_name {
{ "invalid", "*Invalid*" },
{ "bool", "Bool" },
{ "int", "Int" },
{ "uri", "URI" },
{ "long", "Long" },
{ "float", "Float" },
{ "double", "Double" },
@ -343,6 +344,9 @@ print_pod_value (uint32_t size, uint32_t type, void *body, int prefix)
case SPA_POD_TYPE_INT:
printf ("%-*sInt %d\n", prefix, "", *(int32_t *) body);
break;
case SPA_POD_TYPE_URI:
printf ("%-*sURI %d\n", prefix, "", *(int32_t *) body);
break;
case SPA_POD_TYPE_LONG:
printf ("%-*sLong %"PRIi64"\n", prefix, "", *(int64_t *) body);
break;
@ -440,6 +444,9 @@ print_format_value (uint32_t size, uint32_t type, void *body)
case SPA_POD_TYPE_INT:
fprintf (stderr, "%"PRIi32, *(int32_t *) body);
break;
case SPA_POD_TYPE_URI:
fprintf (stderr, "%"PRIi32, *(int32_t *) body);
break;
case SPA_POD_TYPE_LONG:
fprintf (stderr, "%"PRIi64, *(int64_t *) body);
break;