diff options
author | Kevin Wolf <kwolf@redhat.com> | 2019-06-13 17:34:03 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-06-18 08:14:17 +0200 |
commit | 920824165c49bfbd1e0e9e07fd92e0bbbf32aea3 (patch) | |
tree | e338c3af03ec3f86d017b581cf5d7f86fc8b2e65 /monitor/misc.c | |
parent | 1d95db745b78439e9eec0782eca9cc0d679d6224 (diff) | |
download | qemu-920824165c49bfbd1e0e9e07fd92e0bbbf32aea3.zip qemu-920824165c49bfbd1e0e9e07fd92e0bbbf32aea3.tar.gz qemu-920824165c49bfbd1e0e9e07fd92e0bbbf32aea3.tar.bz2 |
monitor: Split Monitor.flags into separate bools
Monitor.flags contains three different flags: One to distinguish HMP
from QMP; one specific to HMP (MONITOR_USE_READLINE) that is ignored
with QMP; and another one specific to QMP (MONITOR_USE_PRETTY) that is
ignored with HMP.
Split the flags field into three bools and move them to the right
subclass. Flags are still in use for the monitor_init() interface.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20190613153405.24769-14-kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'monitor/misc.c')
-rw-r--r-- | monitor/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/misc.c b/monitor/misc.c index 6e3d580..bf9face 100644 --- a/monitor/misc.c +++ b/monitor/misc.c @@ -121,7 +121,7 @@ char *qmp_human_monitor_command(const char *command_line, bool has_cpu_index, Monitor *old_mon; MonitorHMP hmp = {}; - monitor_data_init(&hmp.common, 0, true, false); + monitor_data_init(&hmp.common, false, true, false); old_mon = cur_mon; cur_mon = &hmp.common; |