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:
Wim Taymans 2016-09-27 16:59:45 +02:00
parent 7b53fa8685
commit c6861845a7
14 changed files with 123 additions and 79 deletions

View file

@ -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,