This is patches 1-9 of v2: https://lists.gnu.org/archive/html/qemu-devel/2016-02/msg06079.html
the rest of that series needs a bit more work on commit messages, so I'll post it later as v4. Depends on Markus' qapi-next branch. Also available as a tag at this location: git fetch git://repo.or.cz/qemu/ericb.git qapi-implicit-v3 and will soon be part of my branch at: http://repo.or.cz/qemu/ericb.git/shortlog/refs/heads/qapi backport-diff gets confused by a patch split and some renames: 001/10:[down] 'qapi: Rename 'fields' to 'members' in generator' 002/10:[down] 'qapi: Rename 'fields' to 'members' in generated C code' 003/10:[----] [--] 'qapi-visit: Expose visit_type_FOO_members()' 004/10:[0061] [FC] 'qapi: Update docs to match recent generator changes' 005/10:[----] [--] 'chardev: Shorten references into ChardevBackend' 006/10:[0014] [FC] 'util: Shorten references into SocketAddress' 007/10:[0025] [FC] 'ui: Shorten references into InputEvent' 008/10:[down] 'qapi: Avoid use of 'data' member of QAPI unions' 009/10:[----] [--] 'chardev: Drop useless ChardevDummy type' 010/10:[0006] [FC] 'qapi: Drop useless 'data' member of unions' Eric Blake (10): qapi: Rename 'fields' to 'members' in generator qapi: Rename 'fields' to 'members' in generated C code qapi-visit: Expose visit_type_FOO_members() qapi: Update docs to match recent generator changes chardev: Shorten references into ChardevBackend util: Shorten references into SocketAddress ui: Shorten references into InputEvent qapi: Avoid use of 'data' member of QAPI unions chardev: Drop useless ChardevDummy type qapi: Drop useless 'data' member of unions scripts/qapi.py | 20 +- scripts/qapi-commands.py | 4 +- scripts/qapi-event.py | 4 +- scripts/qapi-types.py | 19 +- scripts/qapi-visit.py | 51 ++--- backends/baum.c | 2 +- backends/msmouse.c | 2 +- block/nbd.c | 14 +- blockdev.c | 31 +-- hw/char/escc.c | 12 +- hw/input/hid.c | 36 ++-- hw/input/ps2.c | 27 ++- hw/input/virtio-input-hid.c | 33 +-- qemu-char.c | 177 +++++++++------- qemu-nbd.c | 9 +- replay/replay-input.c | 31 +-- tests/test-io-channel-socket.c | 34 +-- ui/input-legacy.c | 25 ++- ui/input.c | 56 ++--- ui/vnc.c | 39 ++-- util/qemu-sockets.c | 11 +- docs/qapi-code-gen.txt | 364 +++++++++++++++++--------------- docs/qmp-spec.txt | 4 +- qapi-schema.json | 15 +- tests/Makefile | 1 - tests/qapi-schema/qapi-schema-test.json | 2 +- tests/qapi-schema/union-clash-data.err | 0 tests/qapi-schema/union-clash-data.exit | 1 - tests/qapi-schema/union-clash-data.json | 7 - tests/qapi-schema/union-clash-data.out | 9 - 30 files changed, 540 insertions(+), 500 deletions(-) delete mode 100644 tests/qapi-schema/union-clash-data.err delete mode 100644 tests/qapi-schema/union-clash-data.exit delete mode 100644 tests/qapi-schema/union-clash-data.json delete mode 100644 tests/qapi-schema/union-clash-data.out -- 2.5.0