summaryrefslogtreecommitdiffstats
path: root/stubs
diff options
context:
space:
mode:
authorKevin Wolf2019-06-13 17:34:04 +0200
committerMarkus Armbruster2019-06-18 08:14:17 +0200
commitfbfc29e3bf145581e84c12ffc432ab56ce1dea0d (patch)
tree2922c5fadb07f55fb45b816bdd1806c4cfcaed46 /stubs
parentmonitor: Split Monitor.flags into separate bools (diff)
downloadqemu-fbfc29e3bf145581e84c12ffc432ab56ce1dea0d.tar.gz
qemu-fbfc29e3bf145581e84c12ffc432ab56ce1dea0d.tar.xz
qemu-fbfc29e3bf145581e84c12ffc432ab56ce1dea0d.zip
monitor: Replace monitor_init() with monitor_init_{hmp, qmp}()
Most callers know which monitor type they want to have. Instead of calling monitor_init() with flags that can describe both types of monitors, make monitor_init_{hmp,qmp}() public interfaces that take specific bools instead of flags and call these functions directly. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20190613153405.24769-15-kwolf@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'stubs')
-rw-r--r--stubs/monitor.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/stubs/monitor.c b/stubs/monitor.c
index cdbf5c5f9a..c3e9a2e4dc 100644
--- a/stubs/monitor.c
+++ b/stubs/monitor.c
@@ -16,7 +16,11 @@ int monitor_get_fd(Monitor *mon, const char *name, Error **errp)
return -1;
}
-void monitor_init(Chardev *chr, int flags)
+void monitor_init_qmp(Chardev *chr, bool pretty)
+{
+}
+
+void monitor_init_hmp(Chardev *chr, bool use_readline)
{
}