diff options
author | Maxim Levitsky <mlevitsk@redhat.com> | 2020-10-06 08:59:32 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-12 11:50:49 -0400 |
commit | 5e34005571af53b73e4a10cb2c6e0712cf6b8d2c (patch) | |
tree | 7c54a46a8b9a5a081651605d7dbdf028101d124b /tests/qtest/libqos | |
parent | c22045bfe6d5ceebd414ff53ff23fff7ad5930d1 (diff) |
qtest: remove qtest_qmp_receive_success
The purpose of qtest_qmp_receive_success was mostly to process events
that arrived between the issueing of a command and the "return"
line from QMP. This is now handled by the buffering of events
that libqtest performs automatically.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Diffstat (limited to 'tests/qtest/libqos')
-rw-r--r-- | tests/qtest/libqos/libqtest.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/qtest/libqos/libqtest.h b/tests/qtest/libqos/libqtest.h index b7a776068c..5c959f1853 100644 --- a/tests/qtest/libqos/libqtest.h +++ b/tests/qtest/libqos/libqtest.h @@ -241,23 +241,6 @@ QDict *qtest_qmp_eventwait_ref(QTestState *s, const char *event); QDict *qtest_qmp_event_ref(QTestState *s, const char *event); /** - * qtest_qmp_receive_success: - * @s: #QTestState instance to operate on - * @event_cb: Event callback - * @opaque: Argument for @event_cb - * - * Poll QMP messages until a command success response is received. - * If @event_cb, call it for each event received, passing @opaque, - * the event's name and data. - * Return the success response's "return" member. - */ -QDict *qtest_qmp_receive_success(QTestState *s, - void (*event_cb)(void *opaque, - const char *name, - QDict *data), - void *opaque); - -/** * qtest_hmp: * @s: #QTestState instance to operate on. * @fmt: HMP command to send to QEMU, formats arguments like sprintf(). |