Re: [PATCH v4 05/20] libqtest: Add a layer of abstraciton to send/recv

2019-11-06 Thread Stefan Hajnoczi
On Wed, Oct 30, 2019 at 02:49:52PM +, Oleinik, Alexander wrote: > @@ -360,6 +383,7 @@ void qtest_quit(QTestState *s) > g_free(s); > } > > + > static void socket_send(int fd, const char *buf, size_t size) > { > size_t offset; [...] > diff --git a/tests/libqtest.h

[PATCH v4 05/20] libqtest: Add a layer of abstraciton to send/recv

2019-10-30 Thread Oleinik, Alexander
From: Alexander Oleinik This makes it simple to swap the transport functions for qtest commands to and from the qtest client. For example, now it is possible to directly pass qtest commands to a server handler that exists within the same process, without the standard way of writing to a file