OSDN Git Service

qapi: Inline do_qmp_dispatch() into qmp_dispatch()
authorMarkus Armbruster <armbru@redhat.com>
Tue, 17 Mar 2020 11:54:46 +0000 (12:54 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 17 Mar 2020 20:25:47 +0000 (21:25 +0100)
commitcf4a0643c8ab7d503465bd3f725369b630ea5001
tree07e657a0cd2157122bd88e562b67e5063051371e
parent84ab00868798a65e19d76d3cb5f1552c6b25ceb4
qapi: Inline do_qmp_dispatch() into qmp_dispatch()

Both functions check @request is a QDict, and both have code for
QCO_NO_SUCCESS_RESP.  This wasn't the case back when they were
created.  It's a sign of muddled responsibilities.  Inline.  The next
commits will clean up some more.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200317115459.31821-22-armbru@redhat.com>
qapi/qmp-dispatch.c