diff options
author | Markus Armbruster | 2020-03-17 12:54:48 +0100 |
---|---|---|
committer | Markus Armbruster | 2020-03-17 21:25:47 +0100 |
commit | a62c61747fc0934e0f42a37aa078a21c50565fe6 (patch) | |
tree | 5482fc7a2af10a0535045b75e80530d529c070cb /docs/devel | |
parent | qapi: Simplify how qmp_dispatch() deals with QCO_NO_SUCCESS_RESP (diff) | |
download | qemu-a62c61747fc0934e0f42a37aa078a21c50565fe6.tar.gz qemu-a62c61747fc0934e0f42a37aa078a21c50565fe6.tar.xz qemu-a62c61747fc0934e0f42a37aa078a21c50565fe6.zip |
qapi: Simplify how qmp_dispatch() gets the request ID
We convert the request object to a QDict twice: first in
qmp_dispatch() to get the request ID, and then again in
qmp_dispatch_check_obj(), which converts to QDict, then checks and
returns it. We can't get the request ID from the latter, because it's
null when the qdict flunks the checks.
Move the checked conversion to QDict from qmp_dispatch_check_obj() to
qmp_dispatch(), and drop the duplicate there.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200317115459.31821-24-armbru@redhat.com>
Diffstat (limited to 'docs/devel')
0 files changed, 0 insertions, 0 deletions