From d22beb4d05d7f51c361b9a0be5b128db9a817477 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 24 Jun 2020 17:48:16 +0200 Subject: [PATCH] param: add classes to the PROFILE param classes is an enumeration of class-name/count pairs to enumerate the kinds of classes and count that are created from this profile. --- spa/include/spa/param/param.h | 5 +++++ spa/include/spa/param/type-info.h | 1 + 2 files changed, 6 insertions(+) diff --git a/spa/include/spa/param/param.h b/spa/include/spa/param/param.h index d07546599..c649335e2 100644 --- a/spa/include/spa/param/param.h +++ b/spa/include/spa/param/param.h @@ -106,6 +106,11 @@ 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_classes, /**< node classes provided by this profile + * (Struct( + * Struct( + * String : class name (eg. "Audio/Source"), + * Int : number of nodes)*)) */ }; enum spa_param_port_config_mode { diff --git a/spa/include/spa/param/type-info.h b/spa/include/spa/param/type-info.h index 304283db6..756325c60 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_classes, SPA_TYPE_Struct, SPA_TYPE_INFO_PARAM_PROFILE_BASE "classes", NULL, }, { 0, 0, NULL, NULL }, };