diff --git a/spa/include/spa/param/param.h b/spa/include/spa/param/param.h index 3a393adf4..131347acc 100644 --- a/spa/include/spa/param/param.h +++ b/spa/include/spa/param/param.h @@ -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) */ }; diff --git a/spa/include/spa/param/type-info.h b/spa/include/spa/param/type-info.h index 325bf3d95..e00c33e91 100644 --- a/spa/include/spa/param/type-info.h +++ b/spa/include/spa/param/type-info.h @@ -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 }, };