mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
Improve version handling
Add version numbers to protocol interfaces and implementation. Allow allocating user_data in proxy and resource Use separate methods to set implementation. Add protocol object to keep track of available protocols and interfaces. Add possibility to dynamically register interfaces.
This commit is contained in:
parent
c3b73ba47d
commit
ae708c14e7
29 changed files with 572 additions and 225 deletions
|
|
@ -834,10 +834,12 @@ link_bind_func(struct pw_global *global, struct pw_client *client, uint32_t vers
|
|||
struct impl *impl = SPA_CONTAINER_OF(this, struct impl, this);
|
||||
struct pw_resource *resource;
|
||||
|
||||
resource = pw_resource_new(client, id, global->type, global->object, NULL, link_unbind_func);
|
||||
resource = pw_resource_new(client, id, global->type, 0);
|
||||
|
||||
if (resource == NULL)
|
||||
goto no_mem;
|
||||
|
||||
pw_resource_set_implementation(resource, global->object, PW_VERSION_LINK, NULL, link_unbind_func);
|
||||
impl->refcount++;
|
||||
|
||||
pw_log_debug("link %p: bound to %d", global->object, resource->id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue