mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	protocol: add name to device
This commit is contained in:
		
							parent
							
								
									36cbb947f1
								
							
						
					
					
						commit
						5b303b5883
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -606,6 +606,7 @@ static void device_marshal_info(void *object, struct pw_device_info *info)
 | 
			
		|||
	spa_pod_builder_add(b,
 | 
			
		||||
			    "[",
 | 
			
		||||
			    "i", info->id,
 | 
			
		||||
			    "s", info->name,
 | 
			
		||||
			    "l", info->change_mask,
 | 
			
		||||
			    "i", n_items, NULL);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -631,6 +632,7 @@ static int device_demarshal_info(void *object, void *data, size_t size)
 | 
			
		|||
	if (spa_pod_parser_get(&prs,
 | 
			
		||||
			"["
 | 
			
		||||
			"i", &info.id,
 | 
			
		||||
			"s", &info.name,
 | 
			
		||||
			"l", &info.change_mask,
 | 
			
		||||
			"i", &props.n_items, NULL) < 0)
 | 
			
		||||
		return -EINVAL;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue