Go to the documentation of this file.
25 #ifndef SPA_DEBUG_POD_H
26 #define SPA_DEBUG_POD_H
43 #define spa_debug(...) ({ fprintf(stderr, __VA_ARGS__);fputc('\n', stderr); })
48 uint32_t type,
void *body, uint32_t size)
52 spa_debug(
"%*s" "Bool %s", indent,
"", (*(int32_t *) body) ?
"true" :
"false");
55 spa_debug(
"%*s" "Id %-8d (%s)", indent,
"", *(int32_t *) body,
59 spa_debug(
"%*s" "Int %d", indent,
"", *(int32_t *) body);
62 spa_debug(
"%*s" "Long %" PRIi64
"", indent,
"", *(int64_t *) body);
65 spa_debug(
"%*s" "Float %f", indent,
"", *(
float *) body);
68 spa_debug(
"%*s" "Double %f", indent,
"", *(
double *) body);
71 spa_debug(
"%*s" "String \"%s\"", indent,
"", (
char *) body);
74 spa_debug(
"%*s" "Fd %d", indent,
"", *(
int *) body);
79 spa_debug(
"%*s" "Pointer %s %p", indent,
"",
104 spa_debug(
"%*s" "Array: child.size %d, child.type %s", indent,
"",
118 spa_debug(
"%*s" "Choice: type %s, flags %08x %d %d", indent,
"",
143 spa_debug(
"%*s" "Object: size %d, type %s (%d), id %s (%d)", indent,
"", size,
144 ti ? ti->
name :
"unknown", b->
type, ii ? ii->
name :
"unknown", b->
id);
146 info = ti ? ti->
values : info;
151 spa_debug(
"%*s" "Prop: key %s (%d), flags %08x", indent+2,
"",
169 spa_debug(
"%*s" "Sequence: size %d, unit %s", indent,
"", size,
170 ti ? ti->
name :
"unknown");
175 spa_debug(
"%*s" "Control: offset %d, type %s", indent+2,
"",
@ SPA_TYPE_None
Definition: build-12775836/doc/spa/utils/type.h:45
uint32_t width
Definition: defs.h:87
@ SPA_TYPE_Float
Definition: build-12775836/doc/spa/utils/type.h:50
#define SPA_POD_CHOICE_BODY_FOREACH(body, _size, iter)
Definition: iter.h:102
@ SPA_TYPE_Long
Definition: build-12775836/doc/spa/utils/type.h:49
uint32_t type
one of enum spa_type
Definition: pod/pod.h:170
const struct spa_type_info spa_type_control[]
Definition: control/type-info.h:45
const struct spa_type_info spa_type_choice[]
Definition: utils/type-info.h:69
@ SPA_TYPE_Id
Definition: build-12775836/doc/spa/utils/type.h:47
uint32_t type
Definition: build-12775836/doc/spa/utils/type.h:138
uint32_t unit
Definition: pod/pod.h:227
@ SPA_TYPE_Int
Definition: build-12775836/doc/spa/utils/type.h:48
Definition: pod/pod.h:180
Definition: build-12775836/doc/spa/utils/type.h:137
Definition: pod/pod.h:169
Definition: pod/pod.h:199
uint32_t id
id of the object, depends on the object type
Definition: pod/pod.h:171
Definition: pod/pod.h:219
uint32_t height
Definition: defs.h:88
struct spa_pod child
Definition: pod/pod.h:151
@ SPA_TYPE_Array
Definition: build-12775836/doc/spa/utils/type.h:57
#define spa_debug(...)
Definition: debug/pod.h:43
#define SPA_POD_OBJECT_BODY_FOREACH(body, size, iter)
Definition: iter.h:118
#define SPA_POD_TYPE(pod)
Definition: pod/pod.h:41
@ SPA_TYPE_Rectangle
Definition: build-12775836/doc/spa/utils/type.h:54
const void * value
Definition: pod/pod.h:183
Definition: pod/pod.h:148
#define SPA_POD_ARRAY_BODY_FOREACH(body, _size, iter)
Definition: iter.h:94
@ SPA_TYPE_Pointer
Definition: build-12775836/doc/spa/utils/type.h:61
Definition: pod/pod.h:226
const char * name
Definition: build-12775836/doc/spa/utils/type.h:140
@ SPA_TYPE_Fd
Definition: build-12775836/doc/spa/utils/type.h:62
const struct spa_dict * info
Extra information about the handles of this factory.
Definition: plugin.h:130
@ SPA_TYPE_String
Definition: build-12775836/doc/spa/utils/type.h:52
@ SPA_TYPE_Bitmap
Definition: build-12775836/doc/spa/utils/type.h:56
uint32_t type
type of control, enum spa_control_type
Definition: pod/pod.h:221
int spa_debug_mem(int indent, const void *data, size_t size)
Definition: build-12775836/doc/spa/debug/mem.h:43
@ SPA_TYPE_Bool
Definition: build-12775836/doc/spa/utils/type.h:46
Definition: pod/pod.h:122
uint32_t type
pointer id, one of enum spa_type
Definition: pod/pod.h:181
#define SPA_POD_SEQUENCE_BODY_FOREACH(body, size, iter)
Definition: iter.h:126
#define SPA_POD_BODY(pod)
Definition: pod/pod.h:47
uint32_t key
key of property, list of valid keys depends on the object type
Definition: pod/pod.h:200
uint32_t size
Definition: pod/pod.h:51
#define SPA_TYPE_ROOT
Definition: utils/type-info.h:40
@ SPA_TYPE_Bytes
Definition: build-12775836/doc/spa/utils/type.h:53
@ SPA_TYPE_Double
Definition: build-12775836/doc/spa/utils/type.h:51
#define SPA_POD_BODY_SIZE(pod)
Definition: pod/pod.h:40
@ SPA_TYPE_Object
Definition: build-12775836/doc/spa/utils/type.h:59
@ SPA_TYPE_Sequence
Definition: build-12775836/doc/spa/utils/type.h:60
const struct spa_type_info * values
Definition: build-12775836/doc/spa/utils/type.h:141
struct spa_pod value
control value, depends on type
Definition: pod/pod.h:222
uint32_t denom
Definition: defs.h:106
uint32_t type
type of choice, one of enum spa_choice_type
Definition: pod/pod.h:149
@ SPA_TYPE_Fraction
Definition: build-12775836/doc/spa/utils/type.h:55
uint32_t type
Definition: pod/pod.h:52
const struct spa_type_info * spa_debug_type_find(const struct spa_type_info *info, uint32_t type)
Definition: types.h:41
int spa_debug_pod_value(int indent, const struct spa_type_info *info, uint32_t type, void *body, uint32_t size)
Definition: debug/pod.h:47
uint32_t flags
flags for property
Definition: pod/pod.h:211
@ SPA_TYPE_Choice
Definition: build-12775836/doc/spa/utils/type.h:63
int spa_debug_pod(int indent, const struct spa_type_info *info, const struct spa_pod *pod)
Definition: debug/pod.h:200
#define SPA_POD_CONTENTS(type, pod)
Definition: pod/pod.h:45
struct spa_pod value
Definition: pod/pod.h:212
uint32_t num
Definition: defs.h:105
uint32_t flags
extra flags
Definition: pod/pod.h:150
#define SPA_POD_FOREACH(pod, size, iter)
Definition: iter.h:110
uint32_t offset
media offset
Definition: pod/pod.h:220
struct spa_pod child
Definition: pod/pod.h:123
@ SPA_TYPE_Struct
Definition: build-12775836/doc/spa/utils/type.h:58
const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:68