aboutsummaryrefslogtreecommitdiff
path: root/monitor/monitor-internal.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-01-29 11:22:39 +0100
committerMarkus Armbruster <armbru@redhat.com>2020-02-17 13:53:47 +0100
commit7d3f505359214734d46c159af0a88b522f6692ad (patch)
tree2cfad3dda41052529e8f0e1e46844b6d9b3585c8 /monitor/monitor-internal.h
parent567628163ec8c6b76ba3117c3062edc0521dc185 (diff)
downloadqemu-7d3f505359214734d46c159af0a88b522f6692ad.zip
qemu-7d3f505359214734d46c159af0a88b522f6692ad.tar.gz
qemu-7d3f505359214734d46c159af0a88b522f6692ad.tar.bz2
monitor: Move qmp_query_qmp_schema to qmp-cmds-control.c
monitor/misc.c contains code that works only in the system emulator, so it can't be linked to tools like a storage daemon. In order to make schema introspection available for tools, move the function to monitor/qmp-cmds-control.c, which can be linked into the storage daemon. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20200129102239.31435-5-kwolf@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'monitor/monitor-internal.h')
-rw-r--r--monitor/monitor-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/monitor/monitor-internal.h b/monitor/monitor-internal.h
index 4d402de..3e6baba 100644
--- a/monitor/monitor-internal.h
+++ b/monitor/monitor-internal.h
@@ -180,4 +180,7 @@ void help_cmd(Monitor *mon, const char *name);
void handle_hmp_command(MonitorHMP *mon, const char *cmdline);
int hmp_compare_cmd(const char *name, const char *list);
+void qmp_query_qmp_schema(QDict *qdict, QObject **ret_data,
+ Error **errp);
+
#endif