mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-22 08:56:59 -05:00
Use interfaces
Add interfaces and events on objects. Use this to communicate with the objects and transparently convert/marshall to network in the protocols.
This commit is contained in:
parent
9b7debbfd3
commit
e0813b679d
16 changed files with 1307 additions and 822 deletions
|
|
@ -28,6 +28,7 @@ typedef struct _PinosClient PinosClient;
|
|||
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <pinos/client/introspect.h>
|
||||
#include <pinos/client/properties.h>
|
||||
#include <pinos/client/sig.h>
|
||||
|
||||
|
|
@ -52,9 +53,12 @@ struct _PinosClient {
|
|||
PinosGlobal *global;
|
||||
|
||||
PinosProperties *properties;
|
||||
PinosClientInfo info;
|
||||
bool ucred_valid;
|
||||
struct ucred ucred;
|
||||
|
||||
void *protocol_private;
|
||||
|
||||
PinosResource *core_resource;
|
||||
|
||||
PinosMap objects;
|
||||
|
|
@ -76,21 +80,6 @@ PinosClient * pinos_client_new (PinosCore *core,
|
|||
PinosProperties *properties);
|
||||
void pinos_client_destroy (PinosClient *client);
|
||||
|
||||
void pinos_client_set_send (PinosClient *client,
|
||||
PinosSendFunc func,
|
||||
void *data);
|
||||
|
||||
SpaResult pinos_client_send_message (PinosClient *client,
|
||||
PinosResource *resource,
|
||||
uint32_t opcode,
|
||||
void *message,
|
||||
bool flush);
|
||||
|
||||
SpaResult pinos_client_send_error (PinosClient *client,
|
||||
PinosResource *resource,
|
||||
SpaResult res,
|
||||
const char *message, ...);
|
||||
|
||||
void pinos_client_update_properties (PinosClient *client,
|
||||
const SpaDict *dict);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue