summaryrefslogtreecommitdiffstats
path: root/include/monitor
diff options
context:
space:
mode:
authorKevin Wolf2020-01-29 11:22:36 +0100
committerMarkus Armbruster2020-02-17 13:47:48 +0100
commitc3e9555182edc8766d67d2f4471774e2aac0500a (patch)
tree9fdab35d112e1d06a597bd41d05a3a5ef31fd955 /include/monitor
parentMerge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2020-02-15' into ... (diff)
downloadqemu-c3e9555182edc8766d67d2f4471774e2aac0500a.tar.gz
qemu-c3e9555182edc8766d67d2f4471774e2aac0500a.tar.xz
qemu-c3e9555182edc8766d67d2f4471774e2aac0500a.zip
monitor: Move monitor option parsing to monitor/monitor.c
Both the system emulators and tools with QMP support (specifically, the planned storage daemon) will need to parse monitor options, so move that code to monitor/monitor.c, which can be linked into binaries that aren't a system emulator. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200129102239.31435-2-kwolf@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include/monitor')
-rw-r--r--include/monitor/monitor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h
index a81eeff5f8..b7bdd2bb2a 100644
--- a/include/monitor/monitor.h
+++ b/include/monitor/monitor.h
@@ -10,12 +10,15 @@ typedef struct MonitorHMP MonitorHMP;
#define QMP_REQ_QUEUE_LEN_MAX 8
+extern QemuOptsList qemu_mon_opts;
+
bool monitor_cur_is_qmp(void);
void monitor_init_globals(void);
void monitor_init_globals_core(void);
void monitor_init_qmp(Chardev *chr, bool pretty);
void monitor_init_hmp(Chardev *chr, bool use_readline);
+int monitor_init_opts(QemuOpts *opts, Error **errp);
void monitor_cleanup(void);
int monitor_suspend(Monitor *mon);