qtest: add qtest_server_send abstraction
commite731d083e34b4dbebf0870c137df4405e4ae8319
authorAlexander Bulekov <alxndr@bu.edu>
Thu, 20 Feb 2020 04:11:01 +0000 (19 23:11 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Sat, 22 Feb 2020 08:26:47 +0000 (22 08:26 +0000)
treeb04000a81aed52b95a52c90fc3aad66c467a165e
parente785e50a5eb37e143bbe68b1693753b9bcfba005
qtest: add qtest_server_send abstraction

qtest_server_send is a function pointer specifying the handler used to
transmit data to the qtest client. In the standard configuration, this
calls the CharBackend handler, but now it is possible for other types of
handlers, e.g direct-function calls if the qtest client and server
exist within the same process (inproc)

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-id: 20200220041118.23264-6-alxndr@bu.edu
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/sysemu/qtest.h
qtest.c