This is an implement of qmp full-introspection, parse and convert the json string to a dynamical tree, return it to management through QMP command output.
The whole output of query-qmp-schema command: https://raw.github.com/kongove/misc/master/txt/qmp-introspection.output.txt Welcome your comments! V2: use 'DataObject' to describe dynamic struct V3: improve the metadata as suggested by eric Amos Kong (3): qapi: cleanup redundant variable qapi: change qapi to convert schema json qmp: full introspection support for QMP Makefile | 5 +- docs/qmp-full-introspection.txt | 97 ++++++++++ qapi-schema.json | 150 ++++++++++++++++ qmp-commands.hx | 43 ++++- qmp.c | 382 ++++++++++++++++++++++++++++++++++++++++ scripts/qapi-commands.py | 2 +- scripts/qapi-types.py | 48 ++++- scripts/qapi-visit.py | 2 +- scripts/qapi.py | 23 ++- 9 files changed, 737 insertions(+), 15 deletions(-) create mode 100644 docs/qmp-full-introspection.txt -- 1.8.4.2