25 #ifndef SPA_DEBUG_POD_H 
   26 #define SPA_DEBUG_POD_H 
   45                 uint32_t type, 
void *body, uint32_t size)
 
   49                 spa_debug(
"%*s" "Bool %s", indent, 
"", (*(int32_t *) body) ? 
"true" : 
"false");
 
   52                 spa_debug(
"%*s" "Id %-8d (%s)", indent, 
"", *(int32_t *) body,
 
   56                 spa_debug(
"%*s" "Int %d", indent, 
"", *(int32_t *) body);
 
   59                 spa_debug(
"%*s" "Long %" PRIi64 
"", indent, 
"", *(int64_t *) body);
 
   62                 spa_debug(
"%*s" "Float %f", indent, 
"", *(
float *) body);
 
   65                 spa_debug(
"%*s" "Double %f", indent, 
"", *(
double *) body);
 
   68                 spa_debug(
"%*s" "String \"%s\"", indent, 
"", (
char *) body);
 
   71                 spa_debug(
"%*s" "Fd %d", indent, 
"", *(
int *) body);
 
   76                 spa_debug(
"%*s" "Pointer %s %p", indent, 
"",
 
  101                 spa_debug(
"%*s" "Array: child.size %d, child.type %s", indent, 
"",
 
  102                        b->
child.
size, ti ? ti->name : 
"unknown");
 
  115                 spa_debug(
"%*s" "Choice: type %s, flags %08x %d %d", indent, 
"",
 
  140                 spa_debug(
"%*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_debug(
"%*s" "Prop: key %s (%d), flags %08x", indent+2, 
"",
 
  149                                         ii ? ii->name : 
"unknown", p->
key, p->
flags);
 
  166                 spa_debug(
"%*s" "Sequence: size %d, unit %s", indent, 
"", size,
 
  167                        ti ? ti->name : 
"unknown");
 
  172                         spa_debug(
"%*s" "Control: offset %d, type %s", indent+2, 
"",
 
  173                                         c->
offset, ii ? ii->name : 
"unknown");
 
static const struct spa_type_info spa_type_control[]
Definition: type-info.h:52
 
#define spa_debug(fmt,...)
Definition: log.h:44
 
static int spa_debug_pod(int indent, const struct spa_type_info *info, const struct spa_pod *pod)
Definition: pod.h:202
 
static int spa_debug_pod_value(int indent, const struct spa_type_info *info, uint32_t type, void *body, uint32_t size)
Definition: pod.h:49
 
static const struct spa_type_info * spa_debug_type_find(const struct spa_type_info *info, uint32_t type)
Definition: types.h:46
 
static const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:73
 
static int spa_debug_mem(int indent, const void *data, size_t size)
Definition: mem.h:46
 
#define SPA_POD_OBJECT_BODY_FOREACH(body, size, iter)
Definition: iter.h:123
 
#define SPA_POD_CHOICE_BODY_FOREACH(body, _size, iter)
Definition: iter.h:107
 
#define SPA_POD_BODY(pod)
Definition: pod.h:59
 
#define SPA_POD_TYPE(pod)
Definition: pod.h:48
 
#define SPA_POD_BODY_SIZE(pod)
Definition: pod.h:46
 
#define SPA_POD_FOREACH(pod, size, iter)
Definition: iter.h:115
 
#define SPA_POD_CONTENTS(type, pod)
Definition: pod.h:55
 
#define SPA_POD_SEQUENCE_BODY_FOREACH(body, size, iter)
Definition: iter.h:131
 
#define SPA_POD_ARRAY_BODY_FOREACH(body, _size, iter)
Definition: iter.h:99
 
static const struct spa_type_info spa_type_choice[]
Definition: type-info.h:79
 
#define SPA_TYPE_ROOT
Definition: type-info.h:46
 
@ SPA_TYPE_Int
Definition: type.h:54
 
@ SPA_TYPE_Rectangle
Definition: type.h:60
 
@ SPA_TYPE_Long
Definition: type.h:55
 
@ SPA_TYPE_Bool
Definition: type.h:52
 
@ SPA_TYPE_Bytes
Definition: type.h:59
 
@ SPA_TYPE_Bitmap
Definition: type.h:62
 
@ SPA_TYPE_Object
Definition: type.h:65
 
@ SPA_TYPE_Float
Definition: type.h:56
 
@ SPA_TYPE_Fraction
Definition: type.h:61
 
@ SPA_TYPE_None
Definition: type.h:51
 
@ SPA_TYPE_Sequence
Definition: type.h:66
 
@ SPA_TYPE_Double
Definition: type.h:57
 
@ SPA_TYPE_Id
Definition: type.h:53
 
@ SPA_TYPE_Choice
Definition: type.h:69
 
@ SPA_TYPE_Pointer
Definition: type.h:67
 
@ SPA_TYPE_Array
Definition: type.h:63
 
@ SPA_TYPE_String
Definition: type.h:58
 
@ SPA_TYPE_Fd
Definition: type.h:68
 
@ SPA_TYPE_Struct
Definition: type.h:64
 
uint32_t num
Definition: defs.h:140
 
uint32_t denom
Definition: defs.h:141
 
struct spa_pod child
Definition: pod.h:142
 
struct spa_pod child
Definition: pod.h:177
 
uint32_t type
type of choice, one of enum spa_choice_type
Definition: pod.h:175
 
uint32_t flags
extra flags
Definition: pod.h:176
 
struct spa_pod value
control value, depends on type
Definition: pod.h:257
 
uint32_t type
type of control, enum spa_control_type
Definition: pod.h:256
 
uint32_t offset
media offset
Definition: pod.h:255
 
uint32_t type
one of enum spa_type
Definition: pod.h:198
 
uint32_t id
id of the object, depends on the object type
Definition: pod.h:199
 
const void * value
Definition: pod.h:211
 
uint32_t type
pointer id, one of enum spa_type
Definition: pod.h:209
 
uint32_t key
key of property, list of valid keys depends on the object type
Definition: pod.h:229
 
uint32_t flags
flags for property
Definition: pod.h:245
 
struct spa_pod value
Definition: pod.h:246
 
uint32_t unit
Definition: pod.h:262
 
uint32_t type
Definition: pod.h:65
 
uint32_t size
Definition: pod.h:64
 
uint32_t width
Definition: defs.h:119
 
uint32_t height
Definition: defs.h:120
 
const struct spa_type_info * values
Definition: type.h:166