Here is the second version of my qapi flattening attempts. This is now based on Eric Blake's "post-introspection cleanups, and qapi-ify netdev_add" patch series[1], which contains some of my previous commits.
What remains here: NumaOptions flattening (with proposed documentation changes from Eduardo) and OptsVisitor. The Netdev part was mostly taken care of by Eric, I only had to convert NetLegacy into a flat union. Please review. [1]: http://lists.nongnu.org/archive/html/qemu-devel/2015-09/msg05410.html Kővágó, Zoltán (3): qapi: convert NumaOptions into a flat union qapi: change NetLegacy into a flat union qapi: support nested structs in OptsVisitor net/net.c | 47 +++++++------ numa.c | 2 +- qapi-schema.json | 78 +++++++++++++++------ qapi/opts-visitor.c | 116 ++++++++++++++++++++++++++------ tests/qapi-schema/qapi-schema-test.json | 9 ++- tests/qapi-schema/qapi-schema-test.out | 4 ++ tests/test-opts-visitor.c | 34 ++++++++++ 7 files changed, 224 insertions(+), 66 deletions(-) -- 2.5.2