hej, inspired by this thread http://lists.nongnu.org/archive/html/qemu-devel/2018-01/msg04802.html
Seems that nobody got around to this since (did anybody?), so I thought I'd give a try. There's a generator patch and usage example. Anton Nefedov (2): qapi: allow flat unions with empty branches qapi: avoid empty CpuInfoOther type qapi/misc.json | 48 ++++-------------------------------------- cpus.c | 2 -- scripts/qapi/common.py | 18 ++++++++++------ scripts/qapi/doc.py | 2 +- scripts/qapi/types.py | 2 +- scripts/qapi/visit.py | 12 ++++++----- tests/qapi-schema/test-qapi.py | 2 +- 7 files changed, 26 insertions(+), 60 deletions(-) -- 2.7.4