stream: use 2 eventfds for client <-> server signaling

This commit is contained in:
Wim Taymans 2017-04-21 10:24:42 +02:00
parent f0aafb5b51
commit 7d1d3bd666
9 changed files with 80 additions and 56 deletions

View file

@ -530,7 +530,8 @@ client_marshal_info (void *object,
static void
client_node_marshal_done (void *object,
int datafd)
int readfd,
int writefd)
{
PinosResource *resource = object;
PinosConnection *connection = resource->client->protocol_private;
@ -540,7 +541,8 @@ client_node_marshal_done (void *object,
core_update_map (resource->client);
spa_pod_builder_struct (&b.b, &f,
SPA_POD_TYPE_INT, pinos_connection_add_fd (connection, datafd));
SPA_POD_TYPE_INT, pinos_connection_add_fd (connection, readfd),
SPA_POD_TYPE_INT, pinos_connection_add_fd (connection, writefd));
pinos_connection_end_write (connection, resource->id, PINOS_CLIENT_NODE_EVENT_DONE, b.b.offset);
}