mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
Type changes
Only allow properties inside objects, this makes it easier to iterate the object, which is needed for efficiently processing control streams. Add a choice type to mark variable properties. SPA_TYPE_Enum -> SPA_TYPE_Id to avoid confusion with choice enum Make it easier to allocate and initialize properties on the stack Make more efficient methods to make objects.
This commit is contained in:
parent
03fdabd155
commit
cc842cbdc8
63 changed files with 2253 additions and 1880 deletions
|
|
@ -55,7 +55,7 @@ static const struct spa_type_info spa_type_node_event_id[] = {
|
|||
};
|
||||
|
||||
static const struct spa_type_info spa_type_node_event[] = {
|
||||
{ 0, SPA_TYPE_NODE_EVENT_BASE, SPA_TYPE_Enum, spa_type_node_event_id },
|
||||
{ 0, SPA_TYPE_NODE_EVENT_BASE, SPA_TYPE_Id, spa_type_node_event_id },
|
||||
{ 0, NULL, },
|
||||
};
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ static const struct spa_type_info spa_type_node_command_id[] = {
|
|||
};
|
||||
|
||||
static const struct spa_type_info spa_type_node_command[] = {
|
||||
{ 0, SPA_TYPE_NODE_COMMAND_BASE, SPA_TYPE_Enum, spa_type_node_command_id },
|
||||
{ 0, SPA_TYPE_NODE_COMMAND_BASE, SPA_TYPE_Id, spa_type_node_command_id },
|
||||
{ 0, NULL, },
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue