mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pass the client object around
Pass the client object around, it's easier to deal with than the sender id. Fix the ASYNC return check Don't overwrite the fds of a pollitem, instead keep an index of their position in the global fd array.
This commit is contained in:
parent
7b53fa8685
commit
c6861845a7
14 changed files with 123 additions and 79 deletions
|
|
@ -274,7 +274,7 @@ make_node (SpaNode **node, const char *lib, const char *name)
|
|||
/**
|
||||
* pinos_client_node_new:
|
||||
* @daemon: a #PinosDaemon
|
||||
* @sender: the path of the owner
|
||||
* @client: the client owner
|
||||
* @name: a name
|
||||
* @properties: extra properties
|
||||
*
|
||||
|
|
@ -284,7 +284,7 @@ make_node (SpaNode **node, const char *lib, const char *name)
|
|||
*/
|
||||
PinosNode *
|
||||
pinos_client_node_new (PinosDaemon *daemon,
|
||||
const gchar *sender,
|
||||
PinosClient *client,
|
||||
const gchar *name,
|
||||
PinosProperties *properties)
|
||||
{
|
||||
|
|
@ -302,7 +302,7 @@ pinos_client_node_new (PinosDaemon *daemon,
|
|||
|
||||
return g_object_new (PINOS_TYPE_CLIENT_NODE,
|
||||
"daemon", daemon,
|
||||
"sender", sender,
|
||||
"client", client,
|
||||
"name", name,
|
||||
"properties", properties,
|
||||
"node", n,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue