Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
03c15a81
Commit
03c15a81
authored
4 years ago
by
Julian Bouzas
Browse files
Options
Downloads
Patches
Plain Diff
spa-type: add format, param-port-config and param-profile tables
parent
058f8ae1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/wp/spa-type.c
+9
-6
9 additions, 6 deletions
lib/wp/spa-type.c
lib/wp/spa-type.h
+12
-6
12 additions, 6 deletions
lib/wp/spa-type.h
with
21 additions
and
12 deletions
lib/wp/spa-type.c
+
9
−
6
View file @
03c15a81
...
...
@@ -84,12 +84,15 @@ struct spa_type_table_data {
};
static
struct
spa_type_table_data
s_tables
[
WP_SPA_TYPE_TABLE_LAST
]
=
{
[
WP_SPA_TYPE_TABLE_BASIC
]
=
{
spa_types
,
SPA_TYPE_VENDOR_Other
,
NULL
,
NULL
,
NULL
},
[
WP_SPA_TYPE_TABLE_PARAM
]
=
{
spa_type_param
,
SPA_N_ELEMENTS
(
spa_type_param
),
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_PROPS
]
=
{
spa_type_props
,
SPA_PROP_START_CUSTOM
,
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_PROP_INFO
]
=
{
spa_type_prop_info
,
SPA_N_ELEMENTS
(
spa_type_prop_info
),
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_CONTROL
]
=
{
spa_type_control
,
SPA_CONTROL_LAST
,
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_CHOICE
]
=
{
spa_type_choice
,
SPA_N_ELEMENTS
(
spa_type_choice
),
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_BASIC
]
=
{
spa_types
,
SPA_TYPE_VENDOR_Other
,
NULL
,
NULL
,
NULL
},
[
WP_SPA_TYPE_TABLE_PARAM
]
=
{
spa_type_param
,
SPA_N_ELEMENTS
(
spa_type_param
),
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_PROPS
]
=
{
spa_type_props
,
SPA_PROP_START_CUSTOM
,
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_PROP_INFO
]
=
{
spa_type_prop_info
,
SPA_N_ELEMENTS
(
spa_type_prop_info
),
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_FORMAT
]
=
{
spa_type_format
,
SPA_N_ELEMENTS
(
spa_type_format
),
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_PARAM_PORT_CONFIG
]
=
{
spa_type_param_port_config
,
SPA_N_ELEMENTS
(
spa_type_param_port_config
),
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_PARAM_PROFILE
]
=
{
spa_type_param_profile
,
SPA_N_ELEMENTS
(
spa_type_param_port_config
),
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_CONTROL
]
=
{
spa_type_control
,
SPA_CONTROL_LAST
,
NULL
,
NULL
,
NULL
,
},
[
WP_SPA_TYPE_TABLE_CHOICE
]
=
{
spa_type_choice
,
SPA_N_ELEMENTS
(
spa_type_choice
),
NULL
,
NULL
,
NULL
,
},
};
static
WpSpaTypeTable
...
...
This diff is collapsed.
Click to expand it.
lib/wp/spa-type.h
+
12
−
6
View file @
03c15a81
...
...
@@ -16,14 +16,17 @@ G_BEGIN_DECLS
/**
* WpSpaTypeTable:
* @WP_SPA_TYPE_TABLE_BASIC: The basic type table
* @WP_SPA_TYPE_TABLE_PARAM: The param type table (used as object id)
* @WP_SPA_TYPE_TABLE_PROPS: The object properties type table
* @WP_SPA_TYPE_TABLE_PROP_INFO: The object property info type table
* @WP_SPA_TYPE_TABLE_CONTROL: The sequence control type table
* @WP_SPA_TYPE_TABLE_CHOICE: The choice type table
* @WP_SPA_TYPE_TABLE_FORMAT: The object format type table
* @WP_SPA_TYPE_TABLE_PARAM_PORT_CONFIG: The object param port config type table
* @WP_SPA_TYPE_TABLE_PARAM_PROFILE: The sequence control type table
*
* The diferent tables (namespaces) the registry has.
* WP_SPA_TYPE_TABLE_BASIC (0) - The basic type table
* WP_SPA_TYPE_TABLE_PARAM (1) – The param type table (used as object id)
* WP_SPA_TYPE_TABLE_PROPS (2) – The object properties type table
* WP_SPA_TYPE_TABLE_PROP_INFO (3) – The object property info type table
* WP_SPA_TYPE_TABLE_CONTROL (4) - The sequence control type table
* WP_SPA_TYPE_TABLE_CHOICE (5) - The choice type table
*/
typedef
enum
{
WP_SPA_TYPE_TABLE_BASIC
=
0
,
...
...
@@ -32,6 +35,9 @@ typedef enum {
WP_SPA_TYPE_TABLE_PROP_INFO
,
WP_SPA_TYPE_TABLE_CONTROL
,
WP_SPA_TYPE_TABLE_CHOICE
,
WP_SPA_TYPE_TABLE_FORMAT
,
WP_SPA_TYPE_TABLE_PARAM_PORT_CONFIG
,
WP_SPA_TYPE_TABLE_PARAM_PROFILE
,
WP_SPA_TYPE_TABLE_LAST
,
}
WpSpaTypeTable
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment