diff options
author | Markus Armbruster <armbru@redhat.com> | 2018-08-06 08:53:22 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2018-08-16 08:42:06 +0200 |
commit | 4277f1ebd9b70ee38caddfe3c514d7a91e676bc1 (patch) | |
tree | 798924a380b4b4167c11da3a9ed10976620fb668 /tests/libqtest.h | |
parent | c146b54c7fdbd926ee8fc4369699e3480d54f6fa (diff) | |
download | qemu-4277f1ebd9b70ee38caddfe3c514d7a91e676bc1.zip |
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>
Diffstat (limited to 'tests/libqtest.h')
-rw-r--r-- | tests/libqtest.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/libqtest.h b/tests/libqtest.h index ac52872cbe..c1af40106f 100644 --- a/tests/libqtest.h +++ b/tests/libqtest.h @@ -92,13 +92,13 @@ void qtest_qmp_discard_response(QTestState *s, const char *fmt, ...); QDict *qtest_qmp(QTestState *s, const char *fmt, ...); /** - * qtest_async_qmp: + * qtest_qmp_send: * @s: #QTestState instance to operate on. * @fmt...: QMP message to send to qemu * * Sends a QMP message to QEMU and leaves the response in the stream. */ -void qtest_async_qmp(QTestState *s, const char *fmt, ...); +void qtest_qmp_send(QTestState *s, const char *fmt, ...); /** * qtest_qmpv_discard_response: @@ -121,14 +121,14 @@ void qtest_qmpv_discard_response(QTestState *s, const char *fmt, va_list ap); QDict *qtest_qmpv(QTestState *s, const char *fmt, va_list ap); /** - * qtest_async_qmpv: + * qtest_qmp_vsend: * @s: #QTestState instance to operate on. * @fmt: QMP message to send to QEMU * @ap: QMP message arguments * * Sends a QMP message to QEMU and leaves the response in the stream. */ -void qtest_async_qmpv(QTestState *s, const char *fmt, va_list ap); +void qtest_qmp_vsend(QTestState *s, const char *fmt, va_list ap); /** * qtest_receive: @@ -568,12 +568,12 @@ static inline void qtest_end(void) QDict *qmp(const char *fmt, ...); /** - * qmp_async: + * qmp_send: * @fmt...: QMP message to send to qemu * * Sends a QMP message to QEMU and leaves the response in the stream. */ -void qmp_async(const char *fmt, ...); +void qmp_send(const char *fmt, ...); /** * qmp_discard_response: @@ -940,7 +940,7 @@ static inline int64_t clock_set(int64_t val) } QDict *qmp_fd_receive(int fd); -void qmp_fd_sendv(int fd, const char *fmt, va_list ap); +void qmp_fd_vsend(int fd, const char *fmt, va_list ap); void qmp_fd_send(int fd, const char *fmt, ...); QDict *qmp_fdv(int fd, const char *fmt, va_list ap); QDict *qmp_fd(int fd, const char *fmt, ...); |