mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	global: add properties
Add properties to global objects to make it easier to select what nodes and objects to bind too. They can also be used to implement permissions on the globals based on properties. Add more error handling in _register. Make more functions return a result code. Make a separate pw_module_register, like all other objects.
This commit is contained in:
		
							parent
							
								
									47dd97049c
								
							
						
					
					
						commit
						c593d868fb
					
				
					 45 changed files with 295 additions and 149 deletions
				
			
		| 
						 | 
				
			
			@ -480,7 +480,7 @@ static void make_nodes(struct data *data)
 | 
			
		|||
	data->impl_node = impl_node;
 | 
			
		||||
	pw_node_set_implementation(data->node, &data->impl_node);
 | 
			
		||||
 | 
			
		||||
	pw_node_register(data->node, NULL, NULL);
 | 
			
		||||
	pw_node_register(data->node, NULL, NULL, NULL);
 | 
			
		||||
 | 
			
		||||
	factory = pw_core_find_factory(data->core, "spa-node-factory");
 | 
			
		||||
	props = pw_properties_new("spa.library.name", "v4l2/libspa-v4l2",
 | 
			
		||||
| 
						 | 
				
			
			@ -498,7 +498,7 @@ static void make_nodes(struct data *data)
 | 
			
		|||
				 NULL,
 | 
			
		||||
				 NULL,
 | 
			
		||||
				 0);
 | 
			
		||||
	pw_link_register(data->link, NULL, NULL);
 | 
			
		||||
	pw_link_register(data->link, NULL, NULL, NULL);
 | 
			
		||||
 | 
			
		||||
	pw_node_set_active(data->node, true);
 | 
			
		||||
	pw_node_set_active(data->v4l2, true);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue