From 43d0aa49c17fb3d494bbb5fb9443364d0b24fb5b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 24 Jun 2020 17:49:31 +0200 Subject: [PATCH] Route: add more fields --- spa/include/spa/param/param.h | 3 +++ spa/include/spa/param/type-info.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/spa/include/spa/param/param.h b/spa/include/spa/param/param.h index c649335e2..3a393adf4 100644 --- a/spa/include/spa/param/param.h +++ b/spa/include/spa/param/param.h @@ -136,11 +136,14 @@ enum spa_param_port_config { enum spa_param_route { SPA_PARAM_ROUTE_START, SPA_PARAM_ROUTE_index, /**< index of the routing destination (Int) */ + SPA_PARAM_ROUTE_direction, /**< direction, input/output (Id enum spa_direction) */ + SPA_PARAM_ROUTE_active, /**< if the route is active, (Bool) */ SPA_PARAM_ROUTE_name, /**< name of the routing destination (String) */ SPA_PARAM_ROUTE_description, /**< description of the destination (String) */ 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_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 756325c60..325bf3d95 100644 --- a/spa/include/spa/param/type-info.h +++ b/spa/include/spa/param/type-info.h @@ -323,10 +323,13 @@ static const struct spa_type_info spa_type_param_port_config[] = { static const struct spa_type_info spa_type_param_route[] = { { SPA_PARAM_ROUTE_START, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_ROUTE_BASE, spa_type_param, }, { SPA_PARAM_ROUTE_index, SPA_TYPE_Int, SPA_TYPE_INFO_PARAM_ROUTE_BASE "index", NULL, }, + { SPA_PARAM_ROUTE_direction, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_ROUTE_BASE "direction", spa_type_direction, }, + { SPA_PARAM_ROUTE_active, SPA_TYPE_Bool, SPA_TYPE_INFO_PARAM_ROUTE_BASE "active", NULL, }, { SPA_PARAM_ROUTE_name, SPA_TYPE_String, SPA_TYPE_INFO_PARAM_ROUTE_BASE "name", 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_available, SPA_TYPE_Id, SPA_TYPE_INFO_PARAM_ROUTE_BASE "available", spa_type_param_availability, }, + { SPA_PARAM_ROUTE_profiles, SPA_TYPE_Array, SPA_TYPE_INFO_PARAM_ROUTE_BASE "profiles", NULL, }, { 0, 0, NULL, NULL }, };