remove property flags

Remove the property flags, we will add info about properties
with the param interface.
This commit is contained in:
Wim Taymans 2018-09-28 17:44:14 +02:00
parent 2ebc65728c
commit 940c8645d3
6 changed files with 8 additions and 36 deletions

View file

@ -204,8 +204,8 @@ spa_debug_pod_value(int indent, const struct spa_type_info *info,
SPA_POD_OBJECT_BODY_FOREACH(b, size, p) {
ii = spa_debug_type_find(info, p->key);
spa_debug("%*s" "Prop: key %s, flags %08x", indent+2, "",
ii ? ii->name : "unknown", p->flags);
spa_debug("%*s" "Prop: key %s, context %d", indent+2, "",
ii ? ii->name : "unknown", p->context);
spa_debug_pod_value(indent + 4, ii->values,
p->value.type,

View file

@ -470,24 +470,6 @@ static inline uint32_t spa_choice_from_id(char id)
}
}
static inline uint32_t spa_pod_flag_from_id(char id)
{
switch (id) {
case 'o':
return SPA_POD_PROP_FLAG_OPTIONAL;
case 'r':
return SPA_POD_PROP_FLAG_READONLY;
case 'd':
return SPA_POD_PROP_FLAG_DEPRECATED;
case 'i':
return SPA_POD_PROP_FLAG_INFO;
case 'c':
return SPA_POD_PROP_FLAG_CONTROLLABLE;
default:
return 0;
}
}
#define SPA_POD_BUILDER_COLLECT(builder,type,args) \
do { \
switch (type) { \
@ -631,13 +613,9 @@ spa_pod_builder_addv(struct spa_pod_builder *builder,
}
case ':':
{
uint32_t key, flags = 0;
uint32_t key;
key = va_arg(args, uint32_t);
for (format++;*format;format++)
SPA_FLAG_SET(flags, spa_pod_flag_from_id(*format));
spa_pod_builder_prop(builder, key, flags);
spa_pod_builder_prop(builder, key, 0);
break;
}
case ']': case ')': case '>': case '}':

View file

@ -213,13 +213,7 @@ static inline struct spa_pod *spa_pod_get_values(const struct spa_pod *pod, uint
struct spa_pod_prop {
uint32_t key; /**< key of property, list of valid keys depends on the
* object type */
#define SPA_POD_PROP_FLAG_OPTIONAL (1 << 0) /**< property value is optional */
#define SPA_POD_PROP_FLAG_READONLY (1 << 1) /**< property is readonly */
#define SPA_POD_PROP_FLAG_DEPRECATED (1 << 2) /**< property is deprecated */
#define SPA_POD_PROP_FLAG_INFO (1 << 3) /**< property is informational and is not
* used when filtering */
#define SPA_POD_PROP_FLAG_CONTROLLABLE (1 << 4) /**< property can be controlled */
uint32_t flags;
uint32_t context; /**< context for property */
struct spa_pod value;
/* value follows */
};