mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Make interface types a string
This is more in line with wayland and it allows us to create new interfaces in modules without having to add anything to the type enum. It also removes some lookups to map type_id to readable name in debug.
This commit is contained in:
		
							parent
							
								
									9657486a81
								
							
						
					
					
						commit
						f391353c7f
					
				
					 123 changed files with 791 additions and 1251 deletions
				
			
		| 
						 | 
				
			
			@ -45,9 +45,9 @@ static const struct spa_dict_item module_props[] = {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
struct pw_proxy *pw_core_node_export(struct pw_core *core,
 | 
			
		||||
		uint32_t type, const struct spa_dict *props, void *object, size_t user_data_size);
 | 
			
		||||
		const char *type, const struct spa_dict *props, void *object, size_t user_data_size);
 | 
			
		||||
struct pw_proxy *pw_core_spa_node_export(struct pw_core *core,
 | 
			
		||||
		uint32_t type, const struct spa_dict *props, void *object, size_t user_data_size);
 | 
			
		||||
		const char *type, const struct spa_dict *props, void *object, size_t user_data_size);
 | 
			
		||||
 | 
			
		||||
struct pw_protocol *pw_protocol_native_ext_client_node_init(struct pw_context *context);
 | 
			
		||||
struct pw_protocol *pw_protocol_native_ext_client_node0_init(struct pw_context *context);
 | 
			
		||||
| 
						 | 
				
			
			@ -64,7 +64,7 @@ struct factory_data {
 | 
			
		|||
 | 
			
		||||
static void *create_object(void *_data,
 | 
			
		||||
			   struct pw_resource *resource,
 | 
			
		||||
			   uint32_t type,
 | 
			
		||||
			   const char *type,
 | 
			
		||||
			   uint32_t version,
 | 
			
		||||
			   struct pw_properties *properties,
 | 
			
		||||
			   uint32_t new_id)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue