summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-11-13 09:37:29 +0100
committerWim Taymans <wtaymans@redhat.com>2019-11-21 09:31:53 +0100
commite62041203488bd4c2fe6e4a22aba0b89733d7826 (patch)
treeaf841abf8d895388e8a085f22c306362aba814e7
parente18a24493a254c881a1bda384fdcd70cd671fd1c (diff)
param: add more fields to Profile param
Add description and priority to profile
-rw-r--r--spa/include/spa/param/param.h2
-rw-r--r--spa/include/spa/param/type-info.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/spa/include/spa/param/param.h b/spa/include/spa/param/param.h
index a712366f..04d1dfbc 100644
--- a/spa/include/spa/param/param.h
+++ b/spa/include/spa/param/param.h
@@ -90,6 +90,8 @@ enum spa_param_profile {
SPA_PARAM_PROFILE_START,
SPA_PARAM_PROFILE_index, /**< profile index (Int) */
SPA_PARAM_PROFILE_name, /**< profile name (String) */
+ SPA_PARAM_PROFILE_description, /**< profile description (String) */
+ SPA_PARAM_PROFILE_priority, /**< profile priority (Int) */
};
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 eee0fbf3..d7908c16 100644
--- a/spa/include/spa/param/type-info.h
+++ b/spa/include/spa/param/type-info.h
@@ -269,6 +269,8 @@ static const struct spa_type_info spa_type_param_profile[] = {
{ SPA_PARAM_PROFILE_START, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_PROFILE_BASE, spa_type_param, },
{ SPA_PARAM_PROFILE_index, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_PROFILE_BASE "index", NULL },
{ SPA_PARAM_PROFILE_name, SPA_TYPE_String, SPA_TYPE_INFO_PARAM_PROFILE_BASE "name", 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 },
{ 0, 0, NULL, NULL },
};