mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
proxy: add pw_proxy_set_bound_id
Add method to set bound_id and emit the signal. Rename resource_bound_id -> resource_set_bound_id and add resource_get_bound_id.
This commit is contained in:
parent
030d2a075b
commit
5a2ad084e8
18 changed files with 50 additions and 15 deletions
|
|
@ -104,7 +104,7 @@ static void device_initialized(void *data)
|
|||
struct pw_global *global = pw_device_get_global(device);
|
||||
|
||||
pw_log_debug("client-device %p: initialized global:%d", impl, global->id);
|
||||
pw_resource_bound_id(impl->resource, global->id);
|
||||
pw_resource_set_bound_id(impl->resource, global->id);
|
||||
}
|
||||
|
||||
static const struct pw_device_events device_events = {
|
||||
|
|
|
|||
|
|
@ -1228,7 +1228,7 @@ void pw_client_node_registered(struct pw_client_node *this, struct pw_global *gl
|
|||
if (this->resource == NULL)
|
||||
return;
|
||||
|
||||
pw_resource_bound_id(this->resource, node_id);
|
||||
pw_resource_set_bound_id(this->resource, node_id);
|
||||
|
||||
pw_client_node_resource_transport(this->resource,
|
||||
impl->other_fds[0],
|
||||
|
|
|
|||
|
|
@ -339,7 +339,7 @@ int endpoint_init(struct endpoint *this,
|
|||
this->info.id = this->global->id;
|
||||
this->info.props = &this->props->dict;
|
||||
|
||||
pw_resource_bound_id(client_ep->resource, this->global->id);
|
||||
pw_resource_set_bound_id(client_ep->resource, this->global->id);
|
||||
|
||||
return pw_global_register(this->global);
|
||||
|
||||
|
|
|
|||
|
|
@ -300,7 +300,7 @@ int session_init(struct session *this,
|
|||
this->info.id = this->global->id;
|
||||
this->info.props = &this->props->dict;
|
||||
|
||||
pw_resource_bound_id(client_sess->resource, this->global->id);
|
||||
pw_resource_set_bound_id(client_sess->resource, this->global->id);
|
||||
|
||||
return pw_global_register(this->global);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue