diff options
| author | Peter Xu | 2018-03-09 09:59:49 +0100 |
|---|---|---|
| committer | Eric Blake | 2018-03-19 20:58:36 +0100 |
| commit | 227a07552f3aff3cefe7eb9f8993c04a420ed962 (patch) | |
| tree | 0282adc3ebf2300c212e4f625712004633065618 /include/monitor | |
| parent | monitor: move skip_flush into monitor_data_init (diff) | |
| download | qemu-227a07552f3aff3cefe7eb9f8993c04a420ed962.tar.gz qemu-227a07552f3aff3cefe7eb9f8993c04a420ed962.tar.xz qemu-227a07552f3aff3cefe7eb9f8993c04a420ed962.zip | |
monitor: move the cur_mon hack deeper for QMP
In monitor_qmp_read(), we have the hack to temporarily replace the
cur_mon pointer. Now we move this hack deeper inside the QMP dispatcher
routine since the Monitor pointer can be actually obtained using
container_of() upon the parser object, just like most of the other JSON
parser users do.
This does not make much sense as a single patch. However, this will be
a big step for the next patch, when the QMP dispatcher routine will be
split from the QMP parser.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180309090006.10018-7-peterx@redhat.com>
[eblake: rebase context of qobject_to() macro]
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/monitor')
0 files changed, 0 insertions, 0 deletions
