Depends on Markus' "[PATCH RFC v2 00/47] qapi: QMP introspection", in particular, based on an idea in 7/47 of that series.
Note that if we do this, we must fix patch 27/47 of that series to never omit members of a struct when visiting that struct's fields (that is, the base class of a flat union must be parsed in the same as if that class is also the base of another class). Eric Blake (2): vnc: hoist allocation of VncBasicInfo to callers qapi: unbox base members hmp.c | 6 ++-- scripts/qapi-types.py | 13 ++++++-- scripts/qapi-visit.py | 9 ++++-- tests/test-qmp-commands.c | 15 +++------ tests/test-qmp-event.c | 8 ++--- tests/test-qmp-input-visitor.c | 4 +-- tests/test-qmp-output-visitor.c | 12 +++---- tests/test-visitor-serialization.c | 14 ++++----- ui/spice-core.c | 23 ++++++++------ ui/vnc.c | 64 ++++++++++++++++++++------------------ 10 files changed, 84 insertions(+), 84 deletions(-) -- 2.4.3