]> git.proxmox.com Git - mirror_qemu.git/commit - monitor/hmp.c
monitor: Replace monitor_init() with monitor_init_{hmp, qmp}()
authorKevin Wolf <kwolf@redhat.com>
Thu, 13 Jun 2019 15:34:04 +0000 (17:34 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 18 Jun 2019 06:14:17 +0000 (08:14 +0200)
commitfbfc29e3bf145581e84c12ffc432ab56ce1dea0d
tree2922c5fadb07f55fb45b816bdd1806c4cfcaed46
parent920824165c49bfbd1e0e9e07fd92e0bbbf32aea3
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>
chardev/char.c
gdbstub.c
include/monitor/monitor.h
monitor/hmp.c
monitor/monitor-internal.h
monitor/monitor.c
monitor/qmp.c
stubs/monitor.c
tests/test-util-sockets.c
vl.c