mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -05:00
Registry: implement registry
Make GET_REGISTRY method to create a registry resource, send global added and removed to this resource. Use map for storing proxies and resources.
This commit is contained in:
parent
3dada4731c
commit
7c29209023
15 changed files with 221 additions and 59 deletions
|
|
@ -56,6 +56,7 @@ pinos_core_new (PinosMainLoop *main_loop)
|
|||
|
||||
pinos_data_loop_start (this->data_loop);
|
||||
|
||||
spa_list_init (&this->registry_resource_list);
|
||||
spa_list_init (&this->global_list);
|
||||
spa_list_init (&this->client_list);
|
||||
spa_list_init (&this->node_list);
|
||||
|
|
@ -111,6 +112,8 @@ pinos_core_add_global (PinosCore *core,
|
|||
spa_list_insert (core->global_list.prev, &global->link);
|
||||
pinos_signal_emit (&core->global_added, core, global);
|
||||
|
||||
pinos_log_debug ("global %p: new %u", global, global->id);
|
||||
|
||||
return global;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue