mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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
|
|
@ -78,7 +78,7 @@ static int client_endpoint_stream_update(void *object,
|
|||
struct pw_properties *props = NULL;
|
||||
|
||||
if (!stream) {
|
||||
struct pw_core *core = pw_global_get_core(endpoint->global);
|
||||
struct pw_context *context = pw_global_get_context(endpoint->global);
|
||||
const char *keys[] = {
|
||||
PW_KEY_FACTORY_ID,
|
||||
PW_KEY_CLIENT_ID,
|
||||
|
|
@ -103,7 +103,7 @@ static int client_endpoint_stream_update(void *object,
|
|||
pw_properties_update_keys(props, info->props, keys);
|
||||
|
||||
if (endpoint_stream_init(stream, stream_id, endpoint->info.id,
|
||||
this, core, props) < 0)
|
||||
this, context, props) < 0)
|
||||
goto no_mem;
|
||||
|
||||
spa_list_append(&this->streams, &stream->link);
|
||||
|
|
@ -169,7 +169,7 @@ static void *create_object(void *data,
|
|||
struct pw_factory *factory = d->factory;
|
||||
struct client_endpoint *this;
|
||||
struct pw_client *owner = pw_resource_get_client(owner_resource);
|
||||
struct pw_core *core = pw_client_get_core(owner);
|
||||
struct pw_context *context = pw_client_get_context(owner);
|
||||
|
||||
this = calloc(1, sizeof(struct client_endpoint));
|
||||
if (this == NULL)
|
||||
|
|
@ -191,7 +191,7 @@ static void *create_object(void *data,
|
|||
if (this->resource == NULL)
|
||||
goto no_mem;
|
||||
|
||||
if (endpoint_init(&this->endpoint, this, core, properties) < 0)
|
||||
if (endpoint_init(&this->endpoint, this, context, properties) < 0)
|
||||
goto no_mem;
|
||||
|
||||
pw_resource_add_listener(this->resource, &this->resource_listener,
|
||||
|
|
@ -252,11 +252,11 @@ static const struct pw_module_events module_events = {
|
|||
|
||||
int client_endpoint_factory_init(struct pw_module *module)
|
||||
{
|
||||
struct pw_core *core = pw_module_get_core(module);
|
||||
struct pw_context *context = pw_module_get_context(module);
|
||||
struct pw_factory *factory;
|
||||
struct factory_data *data;
|
||||
|
||||
factory = pw_factory_new(core,
|
||||
factory = pw_factory_new(context,
|
||||
"client-endpoint",
|
||||
PW_TYPE_INTERFACE_ClientEndpoint,
|
||||
PW_VERSION_CLIENT_ENDPOINT_PROXY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue