mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
Rework dbus handling
Remove the Daemon object and remove all dbus code from the main objects. We can use the signals in a separate module to create and destroy the DBus interfaces. Move the dbus protocol in a module Move the autolink policy to a module
This commit is contained in:
parent
b9e2b1c0e3
commit
dfbfb4c9ee
28 changed files with 1122 additions and 1007 deletions
|
|
@ -21,7 +21,6 @@
|
|||
|
||||
#include "pinos/client/pinos.h"
|
||||
#include "pinos/server/core.h"
|
||||
#include "pinos/server/daemon.h"
|
||||
#include "pinos/server/registry.h"
|
||||
#include "pinos/server/node.h"
|
||||
#include "pinos/server/node-factory.h"
|
||||
|
|
@ -35,7 +34,6 @@ pinos_registry_init (PinosRegistry *reg)
|
|||
{
|
||||
reg->map = pinos_id_map_get_default();
|
||||
|
||||
reg->uri.daemon = spa_id_map_get_id (reg->map, PINOS_DAEMON_URI);
|
||||
reg->uri.registry = spa_id_map_get_id (reg->map, PINOS_REGISTRY_URI);
|
||||
reg->uri.node = spa_id_map_get_id (reg->map, PINOS_NODE_URI);
|
||||
reg->uri.node_factory = spa_id_map_get_id (reg->map, PINOS_NODE_FACTORY_URI);
|
||||
|
|
@ -49,21 +47,3 @@ pinos_registry_init (PinosRegistry *reg)
|
|||
|
||||
pinos_map_init (®->objects, 512);
|
||||
}
|
||||
|
||||
PinosObject *
|
||||
pinos_registry_iterate_objects (PinosRegistry *reg,
|
||||
uint32_t type,
|
||||
void **state)
|
||||
{
|
||||
unsigned int idx;
|
||||
PinosObject *o;
|
||||
|
||||
while (true) {
|
||||
idx = SPA_PTR_TO_INT (*state);
|
||||
*state = SPA_INT_TO_PTR (idx+1);
|
||||
o = pinos_map_lookup (®->objects, idx);
|
||||
if (o != NULL)
|
||||
break;
|
||||
}
|
||||
return o;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue