spa: don't use typedef for struct and enum

This commit is contained in:
Wim Taymans 2017-05-25 13:28:15 +02:00
parent 83964cec87
commit 11f23a3ffa
163 changed files with 6510 additions and 8264 deletions

View file

@ -27,7 +27,9 @@ extern "C" {
#include <spa/pod.h>
#include <spa/pod-builder.h>
typedef SpaPODObject SpaProps;
struct spa_props {
struct spa_pod_object object;
};
#define SPA_TYPE__Props SPA_TYPE_POD_OBJECT_BASE "Props"
#define SPA_TYPE_PROPS_BASE SPA_TYPE__Props ":"
@ -49,8 +51,8 @@ typedef SpaPODObject SpaProps;
#define SPA_TYPE_PROPS__patternType SPA_TYPE_PROPS_BASE "patternType"
static inline uint32_t
spa_pod_builder_push_props (SpaPODBuilder *builder,
SpaPODFrame *frame,
spa_pod_builder_push_props (struct spa_pod_builder *builder,
struct spa_pod_frame *frame,
uint32_t props_type)
{
return spa_pod_builder_push_object (builder, frame, 0, props_type);
@ -60,13 +62,13 @@ spa_pod_builder_push_props (SpaPODBuilder *builder,
spa_pod_builder_object(b, f, 0, props_type,__VA_ARGS__)
static inline uint32_t
spa_props_query (const SpaProps *props, uint32_t key, ...)
spa_props_query (const struct spa_props *props, uint32_t key, ...)
{
uint32_t count;
va_list args;
va_start (args, key);
count = spa_pod_contents_queryv (&props->pod, sizeof (SpaProps), key, args);
count = spa_pod_contents_queryv (&props->object.pod, sizeof (struct spa_props), key, args);
va_end (args);
return count;