mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-09 13:30:06 -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
|
|
@ -32,12 +32,14 @@ typedef struct _PinosResource PinosResource;
|
|||
|
||||
typedef void (*PinosDestroy) (void *object);
|
||||
|
||||
#include <pinos/client/object.h>
|
||||
#include <pinos/server/daemon.h>
|
||||
#include <pinos/server/core.h>
|
||||
|
||||
struct _PinosResource {
|
||||
PinosCore *core;
|
||||
SpaList link;
|
||||
|
||||
PinosClient *client;
|
||||
|
||||
uint32_t id;
|
||||
uint32_t type;
|
||||
void *object;
|
||||
|
|
@ -57,7 +59,6 @@ struct _PinosClient {
|
|||
SpaList link;
|
||||
PinosGlobal *global;
|
||||
|
||||
char *sender;
|
||||
PinosProperties *properties;
|
||||
|
||||
SpaList resource_list;
|
||||
|
|
@ -67,7 +68,6 @@ struct _PinosClient {
|
|||
};
|
||||
|
||||
PinosClient * pinos_client_new (PinosCore *core,
|
||||
const gchar *sender,
|
||||
PinosProperties *properties);
|
||||
SpaResult pinos_client_destroy (PinosClient *client);
|
||||
|
||||
|
|
@ -77,10 +77,7 @@ PinosResource * pinos_client_add_resource (PinosClient *client,
|
|||
void *object,
|
||||
PinosDestroy destroy);
|
||||
|
||||
void pinos_client_remove_resource (PinosClient *client,
|
||||
PinosResource *resource);
|
||||
bool pinos_client_has_resource (PinosClient *client,
|
||||
PinosResource *resource);
|
||||
SpaResult pinos_resource_destroy (PinosResource *resource);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue