mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: find_object -> find_object_by_id
This commit is contained in:
parent
3b85369ff6
commit
48e83fc780
1 changed files with 3 additions and 3 deletions
|
|
@ -163,7 +163,7 @@ static bool has_param(struct spa_list *param_list, struct pw_manager_param *p)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static struct object *find_object(struct manager *m, uint32_t id)
|
static struct object *find_object_by_id(struct manager *m, uint32_t id)
|
||||||
{
|
{
|
||||||
struct object *o;
|
struct object *o;
|
||||||
spa_list_for_each(o, &m->this.object_list, this.link) {
|
spa_list_for_each(o, &m->this.object_list, this.link) {
|
||||||
|
|
@ -638,7 +638,7 @@ static void registry_event_global_remove(void *object, uint32_t id)
|
||||||
struct manager *m = object;
|
struct manager *m = object;
|
||||||
struct object *o;
|
struct object *o;
|
||||||
|
|
||||||
if ((o = find_object(m, id)) == NULL)
|
if ((o = find_object_by_id(m, id)) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
o->this.removing = true;
|
o->this.removing = true;
|
||||||
|
|
@ -757,7 +757,7 @@ int pw_manager_set_metadata(struct pw_manager *manager,
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
char *value;
|
char *value;
|
||||||
|
|
||||||
if ((s = find_object(m, subject)) == NULL)
|
if ((s = find_object_by_id(m, subject)) == NULL)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
if (!SPA_FLAG_IS_SET(s->this.permissions, PW_PERM_M))
|
if (!SPA_FLAG_IS_SET(s->this.permissions, PW_PERM_M))
|
||||||
return -EACCES;
|
return -EACCES;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue