mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
tests/qtests: add qtest_qmp_add_client()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
99997823bb
commit
2c7294d72c
2 changed files with 29 additions and 0 deletions
|
@ -744,6 +744,16 @@ void qtest_qmp_device_add_qdict(QTestState *qts, const char *drv,
|
|||
void qtest_qmp_device_add(QTestState *qts, const char *driver, const char *id,
|
||||
const char *fmt, ...) GCC_FMT_ATTR(4, 5);
|
||||
|
||||
/**
|
||||
* qtest_qmp_add_client:
|
||||
* @qts: QTestState instance to operate on
|
||||
* @protocol: the protocol to add to
|
||||
* @fd: the client file-descriptor
|
||||
*
|
||||
* Call QMP ``getfd`` followed by ``add_client`` with the given @fd.
|
||||
*/
|
||||
void qtest_qmp_add_client(QTestState *qts, const char *protocol, int fd);
|
||||
|
||||
/**
|
||||
* qtest_qmp_device_del:
|
||||
* @qts: QTestState instance to operate on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue