mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
param: add properties to route and profile
This commit is contained in:
parent
43d0aa49c1
commit
2e914ac10e
2 changed files with 11 additions and 0 deletions
|
|
@ -106,8 +106,13 @@ enum spa_param_profile {
|
||||||
SPA_PARAM_PROFILE_priority, /**< profile priority (Int) */
|
SPA_PARAM_PROFILE_priority, /**< profile priority (Int) */
|
||||||
SPA_PARAM_PROFILE_available, /**< availability of the profile
|
SPA_PARAM_PROFILE_available, /**< availability of the profile
|
||||||
* (Id enum spa_param_availability) */
|
* (Id enum spa_param_availability) */
|
||||||
|
SPA_PARAM_PROFILE_properties, /**< properties (Struct(
|
||||||
|
* Int : n_items,
|
||||||
|
* (String : key,
|
||||||
|
* String : value)*)) */
|
||||||
SPA_PARAM_PROFILE_classes, /**< node classes provided by this profile
|
SPA_PARAM_PROFILE_classes, /**< node classes provided by this profile
|
||||||
* (Struct(
|
* (Struct(
|
||||||
|
* Int : number of items following
|
||||||
* Struct(
|
* Struct(
|
||||||
* String : class name (eg. "Audio/Source"),
|
* String : class name (eg. "Audio/Source"),
|
||||||
* Int : number of nodes)*)) */
|
* Int : number of nodes)*)) */
|
||||||
|
|
@ -143,6 +148,10 @@ enum spa_param_route {
|
||||||
SPA_PARAM_ROUTE_priority, /**< priority of the destination (Int) */
|
SPA_PARAM_ROUTE_priority, /**< priority of the destination (Int) */
|
||||||
SPA_PARAM_ROUTE_available, /**< availability of the destination
|
SPA_PARAM_ROUTE_available, /**< availability of the destination
|
||||||
* (Id enum spa_param_availability) */
|
* (Id enum spa_param_availability) */
|
||||||
|
SPA_PARAM_ROUTE_properties, /**< properties (Struct(
|
||||||
|
* Int : n_items,
|
||||||
|
* (String : key,
|
||||||
|
* String : value)*)) */
|
||||||
SPA_PARAM_ROUTE_profiles, /**< associated profile indexes (Array of Int) */
|
SPA_PARAM_ROUTE_profiles, /**< associated profile indexes (Array of Int) */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -288,6 +288,7 @@ static const struct spa_type_info spa_type_param_profile[] = {
|
||||||
{ SPA_PARAM_PROFILE_description, SPA_TYPE_String, SPA_TYPE_INFO_PARAM_PROFILE_BASE "description", NULL },
|
{ SPA_PARAM_PROFILE_description, SPA_TYPE_String, SPA_TYPE_INFO_PARAM_PROFILE_BASE "description", NULL },
|
||||||
{ SPA_PARAM_PROFILE_priority, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_PROFILE_BASE "priority", NULL },
|
{ SPA_PARAM_PROFILE_priority, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_PROFILE_BASE "priority", NULL },
|
||||||
{ SPA_PARAM_PROFILE_available, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_PROFILE_BASE "available", spa_type_param_availability, },
|
{ SPA_PARAM_PROFILE_available, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_PROFILE_BASE "available", spa_type_param_availability, },
|
||||||
|
{ SPA_PARAM_PROFILE_properties, SPA_TYPE_Struct, SPA_TYPE_INFO_PARAM_PROFILE_BASE "properties", NULL, },
|
||||||
{ SPA_PARAM_PROFILE_classes, SPA_TYPE_Struct, SPA_TYPE_INFO_PARAM_PROFILE_BASE "classes", NULL, },
|
{ SPA_PARAM_PROFILE_classes, SPA_TYPE_Struct, SPA_TYPE_INFO_PARAM_PROFILE_BASE "classes", NULL, },
|
||||||
{ 0, 0, NULL, NULL },
|
{ 0, 0, NULL, NULL },
|
||||||
};
|
};
|
||||||
|
|
@ -329,6 +330,7 @@ static const struct spa_type_info spa_type_param_route[] = {
|
||||||
{ SPA_PARAM_ROUTE_description, SPA_TYPE_String, SPA_TYPE_INFO_PARAM_ROUTE_BASE "description", NULL, },
|
{ SPA_PARAM_ROUTE_description, SPA_TYPE_String, SPA_TYPE_INFO_PARAM_ROUTE_BASE "description", NULL, },
|
||||||
{ SPA_PARAM_ROUTE_priority, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_ROUTE_BASE "priority", NULL, },
|
{ SPA_PARAM_ROUTE_priority, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_ROUTE_BASE "priority", NULL, },
|
||||||
{ SPA_PARAM_ROUTE_available, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_ROUTE_BASE "available", spa_type_param_availability, },
|
{ SPA_PARAM_ROUTE_available, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_ROUTE_BASE "available", spa_type_param_availability, },
|
||||||
|
{ SPA_PARAM_ROUTE_properties, SPA_TYPE_Struct, SPA_TYPE_INFO_PARAM_ROUTE_BASE "properties", NULL, },
|
||||||
{ SPA_PARAM_ROUTE_profiles, SPA_TYPE_Array, SPA_TYPE_INFO_PARAM_ROUTE_BASE "profiles", NULL, },
|
{ SPA_PARAM_ROUTE_profiles, SPA_TYPE_Array, SPA_TYPE_INFO_PARAM_ROUTE_BASE "profiles", NULL, },
|
||||||
{ 0, 0, NULL, NULL },
|
{ 0, 0, NULL, NULL },
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue