From: Marc-André Lureau <marcandre.lur...@redhat.com> Hi,
Although some QMP commands are still not fully qapi'fied, it is possible to use more qapi common and generated code by dropping the 'middle' mode. v3: - add a reference to docs/qmp-spec.txt in qmp_capabilities doc - remove 'props' from device_add doc, improve example - replace a g_strcmp0 with more appropriate g_str_equal - add 'export-marshal' command generator key patch - call qmp_marshal_query_version() directly (also get rid of the need to do a make clean, since the qapi json is modified) - add patch to check invalid arguments on no-args (the old dispatch code checks that), and a test - patch reordering to fix intermediate builds - commit messages improvements - split some misc doc fixes in last patch - add some r-b and rebase v2: - rebased on master - add Since: 0.13 to qmp_capabilities and device_add documentation - fix device_add doc - add missing spaces after ',' in get_qmp_greeting() - fix some grammar in monitor.c while touching it Marc-André Lureau (15): qapi-schema: use generated marshaller for 'qmp_capabilities' qapi-schema: add 'device_add' monitor: register gen:false commands manually monitor: remove usage of generated marshal functions qapi: add 'export-marshal' command key monitor: register the qapi generated commands monitor: remove mhandler.cmd_new monitor: implement 'qmp_query_commands' without qmp_cmds qapi: remove the "middle" mode qapi: check invalid arguments on no-args commands qmp: update qmp_query_spice fallback monitor: use qmp_dispatch() build-sys: remove qmp-commands-old.h Drop qmp-commands.hx qmp-commands.txt: fix some styling monitor.c | 403 +++-------- qmp.c | 16 - tests/test-qmp-commands.c | 15 + vl.c | 1 + scripts/qapi-commands.py | 93 +-- scripts/qapi-introspect.py | 3 +- scripts/qapi.py | 15 +- tests/qapi-schema/test-qapi.py | 2 +- .gitignore | 1 - MAINTAINERS | 2 +- Makefile | 5 +- Makefile.target | 7 +- docs/qapi-code-gen.txt | 6 +- docs/writing-qmp-commands.txt | 46 +- hmp-commands-info.hx | 118 ++-- hmp-commands.hx | 208 +++--- qapi-schema.json | 61 ++ qapi/common.json | 2 +- qmp-commands.hx => qmp-commands.txt | 1263 +---------------------------------- trace-events | 1 - 20 files changed, 408 insertions(+), 1860 deletions(-) rename qmp-commands.hx => qmp-commands.txt (82%) -- 2.9.0