25 #ifndef SPA_DEBUG_POD_H 26 #define SPA_DEBUG_POD_H 45 uint32_t type,
void *body, uint32_t size)
49 spa_debugc(ctx,
"%*s" "Bool %s", indent,
"", (*(int32_t *) body) ?
"true" :
"false");
52 spa_debugc(ctx,
"%*s" "Id %-8d (%s)", indent,
"", *(int32_t *) body,
56 spa_debugc(ctx,
"%*s" "Int %d", indent,
"", *(int32_t *) body);
59 spa_debugc(ctx,
"%*s" "Long %" PRIi64
"", indent,
"", *(int64_t *) body);
62 spa_debugc(ctx,
"%*s" "Float %f", indent,
"", *(
float *) body);
65 spa_debugc(ctx,
"%*s" "Double %f", indent,
"", *(
double *) body);
68 spa_debugc(ctx,
"%*s" "String \"%s\"", indent,
"", (
char *) body);
71 spa_debugc(ctx,
"%*s" "Fd %d", indent,
"", *(
int *) body);
76 spa_debugc(ctx,
"%*s" "Pointer %s %p", indent,
"",
101 spa_debugc(ctx,
"%*s" "Array: child.size %d, child.type %s", indent,
"",
102 b->
child.
size, ti ? ti->name :
"unknown");
115 spa_debugc(ctx,
"%*s" "Choice: type %s, flags %08x %d %d", indent,
"",
140 spa_debugc(ctx,
"%*s" "Object: size %d, type %s (%d), id %s (%d)", indent,
"", size,
141 ti ? ti->name :
"unknown", b->
type, ii ? ii->name :
"unknown", b->
id);
143 info = ti ? ti->
values : info;
148 spa_debugc(ctx,
"%*s" "Prop: key %s (%d), flags %08x", indent+2,
"",
149 ii ? ii->name :
"unknown", p->
key, p->
flags);
166 spa_debugc(ctx,
"%*s" "Sequence: size %d, unit %s", indent,
"", size,
167 ti ? ti->name :
"unknown");
172 spa_debugc(ctx,
"%*s" "Control: offset %d, type %s", indent+2,
"",
173 c->
offset, ii ? ii->name :
"unknown");
208 uint32_t
type,
void *body, uint32_t size)
Definition: pod/pod.h:228
#define spa_debugc(_c, _fmt,...)
Definition: spa/include/spa/debug/context.h:57
uint32_t num
Definition: defs.h:140
uint32_t denom
Definition: defs.h:141
struct spa_pod child
Definition: pod/pod.h:177
Definition: spa/include/spa/utils/type.h:69
Definition: pod/pod.h:208
#define SPA_POD_CHOICE_BODY_FOREACH(body, _size, iter)
Definition: iter.h:107
uint32_t type
one of enum spa_type
Definition: pod/pod.h:198
uint32_t id
id of the object, depends on the object type
Definition: pod/pod.h:199
uint32_t offset
media offset
Definition: pod/pod.h:259
static int spa_debugc_pod(struct spa_debug_context *ctx, int indent, const struct spa_type_info *info, const struct spa_pod *pod)
Definition: debug/pod.h:202
uint32_t flags
extra flags
Definition: pod/pod.h:176
uint32_t height
Definition: defs.h:120
Definition: spa/include/spa/utils/type.h:51
uint32_t unit
Definition: pod/pod.h:266
const struct spa_dict * info
Extra information about the handles of this factory.
Definition: plugin.h:139
static const struct spa_type_info spa_type_control[]
Definition: control/type-info.h:52
Definition: spa/include/spa/utils/type.h:54
static const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:73
Definition: spa/include/spa/utils/type.h:66
#define SPA_POD_TYPE(pod)
Definition: pod/pod.h:48
uint32_t type
Definition: pod/pod.h:65
Definition: spa/include/spa/utils/type.h:61
uint32_t type
pointer id, one of enum spa_type
Definition: pod/pod.h:209
#define SPA_POD_OBJECT_BODY_FOREACH(body, size, iter)
Definition: iter.h:123
Definition: spa/include/spa/utils/type.h:162
Definition: spa/include/spa/utils/type.h:64
#define SPA_POD_ARRAY_BODY_FOREACH(body, _size, iter)
Definition: iter.h:99
struct spa_pod child
Definition: pod/pod.h:142
#define SPA_TYPE_ROOT
Definition: utils/type-info.h:46
uint32_t type
type of control, enum spa_control_type
Definition: pod/pod.h:260
#define SPA_POD_SEQUENCE_BODY_FOREACH(body, size, iter)
Definition: iter.h:131
const void * value
Definition: pod/pod.h:211
#define SPA_POD_BODY(pod)
Definition: pod/pod.h:59
static 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:212
uint32_t width
Definition: defs.h:119
static const struct spa_type_info * spa_debug_type_find(const struct spa_type_info *info, uint32_t type)
Definition: types.h:46
#define SPA_POD_BODY_SIZE(pod)
Definition: pod/pod.h:46
Definition: spa/include/spa/utils/type.h:56
Definition: pod/pod.h:174
Definition: spa/include/spa/utils/type.h:67
struct spa_pod value
control value, depends on type
Definition: pod/pod.h:261
Definition: spa/include/spa/utils/type.h:59
Definition: spa/include/spa/utils/type.h:58
Definition: pod/pod.h:258
Definition: spa/include/spa/utils/type.h:55
static int spa_debugc_pod_value(struct spa_debug_context *ctx, int indent, const struct spa_type_info *info, uint32_t type, void *body, uint32_t size)
Definition: debug/pod.h:49
const struct spa_type_info * values
Definition: spa/include/spa/utils/type.h:166
Definition: spa/include/spa/utils/type.h:52
uint32_t key
key of property, list of valid keys depends on the object type
Definition: pod/pod.h:229
Definition: spa/include/spa/utils/type.h:62
uint32_t size
Definition: pod/pod.h:64
Definition: spa/include/spa/utils/type.h:65
struct spa_pod value
Definition: pod/pod.h:250
Definition: spa/include/spa/debug/context.h:53
Definition: spa/include/spa/utils/type.h:68
static int spa_debugc_mem(struct spa_debug_context *ctx, int indent, const void *data, size_t size)
Definition: spa/include/spa/debug/mem.h:46
Definition: pod/pod.h:265
Definition: spa/include/spa/utils/type.h:63
Definition: spa/include/spa/utils/type.h:60
uint32_t type
type of choice, one of enum spa_choice_type
Definition: pod/pod.h:175
static int spa_debug_pod(int indent, const struct spa_type_info *info, const struct spa_pod *pod)
Definition: debug/pod.h:218
Definition: spa/include/spa/utils/type.h:57
Definition: pod/pod.h:141
#define SPA_POD_CONTENTS(type, pod)
Definition: pod/pod.h:55
Definition: pod/pod.h:197
uint32_t flags
flags for property
Definition: pod/pod.h:249
#define SPA_POD_FOREACH(pod, size, iter)
Definition: iter.h:115
Definition: spa/include/spa/utils/type.h:53