connection: add do_close flag to connect_fd

Make pw_remote_connect_fd() not automatically close the provided
fd but let the caller take care of that. This allows us to reuse
the fd in pipewiresrc.

Fixes #155
This commit is contained in:
Wim Taymans 2019-06-19 10:49:28 +02:00
parent 5850044599
commit 216b641ebb
5 changed files with 13 additions and 11 deletions

View file

@ -88,7 +88,7 @@ int pw_protocol_native_connect_local_socket(struct pw_protocol_client *client,
goto error_close;
}
res = pw_protocol_client_connect_fd(client, fd);
res = pw_protocol_client_connect_fd(client, fd, true);
done_callback(data, res);