mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pw_core -> pw_context
The proxy API is the one that we would like to expose for applications and the other API is used internally when implementing modules or factories. The current pw_core object is really a context for all objects so name it that way. It also makes it possible to rename pw_core_proxy to pw_proxy later.
This commit is contained in:
		
							parent
							
								
									42103a8218
								
							
						
					
					
						commit
						8ea78c2e3f
					
				
					 113 changed files with 905 additions and 906 deletions
				
			
		| 
						 | 
				
			
			@ -39,7 +39,7 @@
 | 
			
		|||
#include "pipewire/private.h"
 | 
			
		||||
 | 
			
		||||
struct impl {
 | 
			
		||||
	struct pw_core *core;
 | 
			
		||||
	struct pw_context *context;
 | 
			
		||||
	struct pw_device *device;
 | 
			
		||||
	struct spa_hook device_listener;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -119,7 +119,7 @@ struct pw_device *pw_client_device_new(struct pw_resource *resource,
 | 
			
		|||
	struct impl *impl;
 | 
			
		||||
	struct pw_device *device;
 | 
			
		||||
	struct pw_client *client = pw_resource_get_client(resource);
 | 
			
		||||
	struct pw_core *core = pw_client_get_core(client);
 | 
			
		||||
	struct pw_context *context = pw_client_get_context(client);
 | 
			
		||||
 | 
			
		||||
	if (properties == NULL)
 | 
			
		||||
		properties = pw_properties_new(NULL, NULL);
 | 
			
		||||
| 
						 | 
				
			
			@ -128,13 +128,13 @@ struct pw_device *pw_client_device_new(struct pw_resource *resource,
 | 
			
		|||
 | 
			
		||||
	pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d", client->global->id);
 | 
			
		||||
 | 
			
		||||
	device = pw_device_new(core, properties, sizeof(struct impl));
 | 
			
		||||
	device = pw_device_new(context, properties, sizeof(struct impl));
 | 
			
		||||
	if (device == NULL)
 | 
			
		||||
		return NULL;
 | 
			
		||||
 | 
			
		||||
	impl = pw_device_get_user_data(device);
 | 
			
		||||
	impl->device = device;
 | 
			
		||||
	impl->core = core;
 | 
			
		||||
	impl->context = context;
 | 
			
		||||
	impl->resource = resource;
 | 
			
		||||
 | 
			
		||||
	pw_device_add_listener(impl->device,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue