]> git.proxmox.com Git - mirror_qemu.git/commit - monitor.c
monitor: simplify invalid_qmp_mode()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 12 Sep 2016 09:18:59 +0000 (13:18 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 19 Sep 2016 15:32:21 +0000 (17:32 +0200)
commitd79bedfa404a02a4652cc8d964fa6dc9b7ec62f7
tree30ca96c386f6df802c319cd5ece9e5355157a847
parent94cfd07f26ef240499f3a4a7a14a4bcc17b8f003
monitor: simplify invalid_qmp_mode()

handle_qmp_command() will switch to use qmp_dispatch().  It won't have a
pointer to the marshaller function anymore, but only the name of the
command to invoke. Simplify invalid_qmp_mode() so it can just be called
with the command name.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20160912091913.15831-5-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
monitor.c