The following changes since commit 18640989a9f5e4d2e84b566c52ff1fccfa0dbf4a:
Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging (2015-09-19 15:59:52 +0100) are available in the git repository at: git://repo.or.cz/qemu/armbru.git tags/pull-qapi-2015-09-21 for you to fetch changes up to 1a9a507b2e3e90aa719c96b4c092e7fad7215f21: qapi-introspect: Hide type names (2015-09-21 09:56:49 +0200) ---------------------------------------------------------------- qapi: QMP introspection ---------------------------------------------------------------- Markus Armbruster (26): qapi: Rename class QAPISchema to QAPISchemaParser qapi: New QAPISchema intermediate reperesentation qapi: QAPISchema code generation helper methods qapi: New QAPISchemaVisitor tests/qapi-schema: Convert test harness to QAPISchemaVisitor qapi-types: Convert to QAPISchemaVisitor, fixing flat unions qapi-visit: Convert to QAPISchemaVisitor, fixing bugs qapi-commands: Convert to QAPISchemaVisitor qapi: De-duplicate enum code generation qapi-event: Eliminate global variable event_enum_value qapi-event: Convert to QAPISchemaVisitor, fixing data with base qapi: Replace dirty is_c_ptr() by method c_null() qapi: Clean up after recent conversions to QAPISchemaVisitor qapi-visit: Rearrange code a bit qapi-commands: Rearrange code qapi: Rename qmp_marshal_input_FOO() to qmp_marshal_FOO() qapi: De-duplicate parameter list generation qapi-commands: De-duplicate output marshaling functions qapi: Improve built-in type documentation qapi: Make output visitor return qnull() instead of NULL qapi: Introduce a first class 'any' type qom: Don't use 'gen': false for qom-get, qom-set, object-add qapi-schema: Fix up misleading specification of netdev_add qapi: Pseudo-type '**' is now unused, drop it qapi: New QMP command query-qmp-schema for QMP introspection qapi-introspect: Hide type names .gitignore | 1 + Makefile | 9 +- Makefile.objs | 4 +- docs/qapi-code-gen.txt | 355 +++++++++-- docs/writing-qmp-commands.txt | 8 +- include/monitor/monitor.h | 3 - include/qapi/visitor-impl.h | 2 + include/qapi/visitor.h | 1 + monitor.c | 18 +- qapi-schema.json | 25 +- qapi/introspect.json | 273 ++++++++ qapi/qapi-dealloc-visitor.c | 9 + qapi/qapi-visit-core.c | 6 + qapi/qmp-input-visitor.c | 11 + qapi/qmp-output-visitor.c | 17 +- qmp-commands.hx | 269 ++++---- qmp.c | 27 +- scripts/qapi-commands.py | 286 +++++---- scripts/qapi-event.py | 243 +++---- scripts/qapi-introspect.py | 213 +++++++ scripts/qapi-types.py | 375 +++++------ scripts/qapi-visit.py | 369 +++++------ scripts/qapi.py | 702 ++++++++++++++++++--- tests/.gitignore | 1 + tests/Makefile | 15 +- tests/qapi-schema/alternate-good.out | 16 +- tests/qapi-schema/args-any.err | 1 + .../{type-bypass-no-gen.exit => args-any.exit} | 0 tests/qapi-schema/args-any.json | 2 + .../qapi-schema/{type-bypass.err => args-any.out} | 0 tests/qapi-schema/args-member-array.out | 14 +- tests/qapi-schema/comments.out | 5 +- tests/qapi-schema/empty.out | 4 +- tests/qapi-schema/enum-empty.out | 5 +- tests/qapi-schema/event-case.out | 5 +- tests/qapi-schema/flat-union-base-any.err | 1 + ...ion-base-star.exit => flat-union-base-any.exit} | 0 ...ion-base-star.json => flat-union-base-any.json} | 2 +- ...e-bypass-no-gen.out => flat-union-base-any.out} | 0 tests/qapi-schema/flat-union-base-star.err | 1 - tests/qapi-schema/flat-union-base-star.out | 0 tests/qapi-schema/flat-union-reverse-define.out | 22 +- tests/qapi-schema/ident-with-escape.out | 8 +- tests/qapi-schema/include-relpath.out | 5 +- tests/qapi-schema/include-repetition.out | 5 +- tests/qapi-schema/include-simple.out | 5 +- tests/qapi-schema/indented-expr.out | 8 +- tests/qapi-schema/qapi-schema-test.json | 11 +- tests/qapi-schema/qapi-schema-test.out | 226 +++++-- tests/qapi-schema/returns-int.out | 6 +- tests/qapi-schema/test-qapi.py | 47 +- tests/qapi-schema/type-bypass-no-gen.err | 1 - tests/qapi-schema/type-bypass-no-gen.json | 2 - tests/qapi-schema/type-bypass.exit | 1 - tests/qapi-schema/type-bypass.json | 2 - tests/qapi-schema/type-bypass.out | 3 - tests/test-qmp-commands.c | 5 + tests/test-qmp-input-strict.c | 59 +- tests/test-qmp-input-visitor.c | 49 +- tests/test-qmp-output-visitor.c | 56 +- 60 files changed, 2624 insertions(+), 1195 deletions(-) create mode 100644 qapi/introspect.json create mode 100644 scripts/qapi-introspect.py create mode 100644 tests/qapi-schema/args-any.err rename tests/qapi-schema/{type-bypass-no-gen.exit => args-any.exit} (100%) create mode 100644 tests/qapi-schema/args-any.json rename tests/qapi-schema/{type-bypass.err => args-any.out} (100%) create mode 100644 tests/qapi-schema/flat-union-base-any.err rename tests/qapi-schema/{flat-union-base-star.exit => flat-union-base-any.exit} (100%) rename tests/qapi-schema/{flat-union-base-star.json => flat-union-base-any.json} (95%) rename tests/qapi-schema/{type-bypass-no-gen.out => flat-union-base-any.out} (100%) delete mode 100644 tests/qapi-schema/flat-union-base-star.err delete mode 100644 tests/qapi-schema/flat-union-base-star.out delete mode 100644 tests/qapi-schema/type-bypass-no-gen.err delete mode 100644 tests/qapi-schema/type-bypass-no-gen.json delete mode 100644 tests/qapi-schema/type-bypass.exit delete mode 100644 tests/qapi-schema/type-bypass.json delete mode 100644 tests/qapi-schema/type-bypass.out -- 2.4.3