access: rework access checks

Remove the access struct. Allow for the access module to override any
method of a resource to do additional checks.
This commit is contained in:
Wim Taymans 2017-06-12 18:20:59 +02:00
parent 2c1245f8ef
commit 611ce2151e
14 changed files with 192 additions and 300 deletions

View file

@ -834,7 +834,7 @@ 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, link_unbind_func);
resource = pw_resource_new(client, id, global->type, global->object, NULL, link_unbind_func);
if (resource == NULL)
goto no_mem;