param: add properties to route and profile

This commit is contained in:
Wim Taymans 2020-06-25 13:01:34 +02:00
parent 43d0aa49c1
commit 2e914ac10e
2 changed files with 11 additions and 0 deletions

View file

@ -106,8 +106,13 @@ enum spa_param_profile {
SPA_PARAM_PROFILE_priority, /**< profile priority (Int) */
SPA_PARAM_PROFILE_available, /**< availability of the profile
* (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
* (Struct(
* Int : number of items following
* Struct(
* String : class name (eg. "Audio/Source"),
* Int : number of nodes)*)) */
@ -143,6 +148,10 @@ enum spa_param_route {
SPA_PARAM_ROUTE_priority, /**< priority of the destination (Int) */
SPA_PARAM_ROUTE_available, /**< availability of the destination
* (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) */
};

View file

@ -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_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_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, },
{ 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_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_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, },
{ 0, 0, NULL, NULL },
};