monitor: Create QAPIfied monitor_init()
commitf2098725aa3ebdb4095bc1951c1c0680adbdecc7
authorKevin Wolf <kwolf@redhat.com>
Mon, 24 Feb 2020 14:30:04 +0000 (24 15:30 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Mar 2020 16:21:28 +0000 (6 17:21 +0100)
tree97338604ed7722d36a0e5241391d039ba9132c30
parent9a9f909951516cfec8473f778fb24d6cc9366573
monitor: Create QAPIfied monitor_init()

This adds a new QAPI-based monitor_init() function. The existing
monitor_init_opts() is rewritten to simply put its QemuOpts parameter
into a visitor and pass the resulting QAPI object to monitor_init().

This will cause some change in those error messages for the monitor
options in the system emulator that are now generated by the visitor
rather than explicitly checked in monitor_init_opts().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200224143008.13362-17-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/monitor/monitor.h
monitor/monitor.c
qapi/control.json