monitor: Move qmp_query_qmp_schema to qmp-cmds-control.c
commit7d3f505359214734d46c159af0a88b522f6692ad
authorKevin Wolf <kwolf@redhat.com>
Wed, 29 Jan 2020 10:22:39 +0000 (29 11:22 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 17 Feb 2020 12:53:47 +0000 (17 13:53 +0100)
tree2cfad3dda41052529e8f0e1e46844b6d9b3585c8
parent567628163ec8c6b76ba3117c3062edc0521dc185
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>
monitor/misc.c
monitor/monitor-internal.h
monitor/qmp-cmds-control.c