mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
libqtest: Rename functions to send QMP messages
The functions to receive messages are called qtest_qmp_receive() and qmp_receive(), qmp_fd_receive(). The ones to send messages are called qtest_async_qmp(), qtest_async_qmpv(), qmp_async(), qmp_fd_send(), qmp_fd_sendv(). Inconsistent. Rename the *_async* ones to qmp_send(), qtest_qmp_send(), qtest_qmp_vsend(). Rename qmp_fd_sendv() to qmp_fd_vsend(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180806065344.7103-2-armbru@redhat.com>
This commit is contained in:
parent
c146b54c7f
commit
4277f1ebd9
5 changed files with 33 additions and 33 deletions
|
@ -674,7 +674,7 @@ void ahci_exec(AHCIQState *ahci, uint8_t port,
|
|||
g_assert_cmpint(rc, ==, 0);
|
||||
}
|
||||
if (opts->error) {
|
||||
qtest_async_qmp(ahci->parent->qts, "{'execute':'cont' }");
|
||||
qtest_qmp_send(ahci->parent->qts, "{'execute':'cont' }");
|
||||
qtest_qmp_eventwait(ahci->parent->qts, "RESUME");
|
||||
}
|
||||
|
||||
|
@ -712,7 +712,7 @@ AHCICommand *ahci_guest_io_halt(AHCIQState *ahci, uint8_t port,
|
|||
void ahci_guest_io_resume(AHCIQState *ahci, AHCICommand *cmd)
|
||||
{
|
||||
/* Complete the command */
|
||||
qtest_async_qmp(ahci->parent->qts, "{'execute':'cont' }");
|
||||
qtest_qmp_send(ahci->parent->qts, "{'execute':'cont' }");
|
||||
qtest_qmp_eventwait(ahci->parent->qts, "RESUME");
|
||||
ahci_command_wait(ahci, cmd);
|
||||
ahci_command_verify(ahci, cmd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue