mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Route: add more fields
This commit is contained in:
		
							parent
							
								
									d22beb4d05
								
							
						
					
					
						commit
						43d0aa49c1
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -136,11 +136,14 @@ enum spa_param_port_config {
 | 
				
			||||||
enum spa_param_route {
 | 
					enum spa_param_route {
 | 
				
			||||||
	SPA_PARAM_ROUTE_START,
 | 
						SPA_PARAM_ROUTE_START,
 | 
				
			||||||
	SPA_PARAM_ROUTE_index,			/**< index of the routing destination (Int) */
 | 
						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_name,			/**< name of the routing destination (String) */
 | 
				
			||||||
	SPA_PARAM_ROUTE_description,		/**< description of the destination (String) */
 | 
						SPA_PARAM_ROUTE_description,		/**< description of the destination (String) */
 | 
				
			||||||
	SPA_PARAM_ROUTE_priority,		/**< priority of the destination (Int) */
 | 
						SPA_PARAM_ROUTE_priority,		/**< priority of the destination (Int) */
 | 
				
			||||||
	SPA_PARAM_ROUTE_available,		/**< availability of the destination
 | 
						SPA_PARAM_ROUTE_available,		/**< availability of the destination
 | 
				
			||||||
						  *  (Id enum spa_param_availability) */
 | 
											  *  (Id enum spa_param_availability) */
 | 
				
			||||||
 | 
						SPA_PARAM_ROUTE_profiles,		/**< associated profile indexes (Array of Int) */
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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[] = {
 | 
					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_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_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_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_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_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_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 },
 | 
						{ 0, 0, NULL, NULL },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue