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:
Wim Taymans 2016-11-30 19:09:09 +01:00
parent 3dada4731c
commit 7c29209023
15 changed files with 221 additions and 59 deletions

View file

@ -1208,6 +1208,12 @@ proxy_clear (SpaProxy *this)
return SPA_RESULT_OK;
}
static void
client_node_resource_destroy (PinosResource *resource)
{
pinos_client_node_destroy (resource->object);
}
/**
* pinos_client_node_new:
* @daemon: a #PinosDaemon
@ -1257,7 +1263,7 @@ pinos_client_node_new (PinosClient *client,
id,
client->core->uri.client_node,
this,
(PinosDestroy) pinos_client_node_destroy);
(PinosDestroy) client_node_resource_destroy);
impl->proxy.resource = this->resource;
this->resource->dispatch_func = client_node_dispatch_func;