mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	Fix export type prototype
Pass the type as provided by the export type. This way we can look up the owner of the export type later.
This commit is contained in:
		
							parent
							
								
									3cb019de51
								
							
						
					
					
						commit
						0d3aa1fd30
					
				
					 4 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -52,7 +52,7 @@ static const struct pw_proxy_events proxy_events = {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
struct pw_proxy *pw_core_spa_device_export(struct pw_core *core,
 | 
			
		||||
		uint32_t type, const struct spa_dict *props, void *object,
 | 
			
		||||
		const char *type, const struct spa_dict *props, void *object,
 | 
			
		||||
		size_t user_data_size)
 | 
			
		||||
{
 | 
			
		||||
	struct spa_device *device = object;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1197,7 +1197,7 @@ static struct pw_proxy *node_export(struct pw_core *core, void *object, bool do_
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
struct pw_proxy *pw_core_node_export(struct pw_core *core,
 | 
			
		||||
		uint32_t type, const struct spa_dict *props, void *object,
 | 
			
		||||
		const char *type, const struct spa_dict *props, void *object,
 | 
			
		||||
		size_t user_data_size)
 | 
			
		||||
{
 | 
			
		||||
	struct pw_impl_node *node = object;
 | 
			
		||||
| 
						 | 
				
			
			@ -1208,7 +1208,7 @@ struct pw_proxy *pw_core_node_export(struct pw_core *core,
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
struct pw_proxy *pw_core_spa_node_export(struct pw_core *core,
 | 
			
		||||
		uint32_t type, const struct spa_dict *props, void *object,
 | 
			
		||||
		const char *type, const struct spa_dict *props, void *object,
 | 
			
		||||
		size_t user_data_size)
 | 
			
		||||
{
 | 
			
		||||
	struct pw_impl_node *node;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,7 +52,7 @@ static const struct pw_proxy_events proxy_events = {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
struct pw_proxy *pw_core_metadata_export(struct pw_core *core,
 | 
			
		||||
		uint32_t type, const struct spa_dict *props, void *object,
 | 
			
		||||
		const char *type, const struct spa_dict *props, void *object,
 | 
			
		||||
		size_t user_data_size)
 | 
			
		||||
{
 | 
			
		||||
	struct pw_metadata *meta = object;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -252,7 +252,7 @@ struct pw_proxy *pw_core_export(struct pw_core *core,
 | 
			
		|||
		goto error_export_type;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	proxy = t->func(core, type, props, object, user_data_size);
 | 
			
		||||
	proxy = t->func(core, t->type, props, object, user_data_size);
 | 
			
		||||
        if (proxy == NULL) {
 | 
			
		||||
		res = -errno;
 | 
			
		||||
		goto error_proxy_failed;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue