qapi: Use anonymous bases in QMP flat unionspull-qapi-2016-03-18
commit3666a97f78704b941c360dc917acb14c8774eca7
authorEric Blake <eblake@redhat.com>
Thu, 17 Mar 2016 22:48:40 +0000 (17 16:48 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 18 Mar 2016 09:29:26 +0000 (18 10:29 +0100)
treef053504a06f2536d190526bcd7a77763ccc1ce62
parentac4338f8eb783fd421aae492ca262a586918471e
qapi: Use anonymous bases in QMP flat unions

Now that the generator supports it, we might as well use an
anonymous base rather than breaking out a single-use Base
structure, for all three of our current QMP flat unions.

Oddly enough, this change does not affect the resulting
introspection output (because we already inline the members of
a base type into an object, and had no independent use of the
base type reachable from a command).

The case_whitelist now has to list the name of an implicit
type; which is not too bad (consider it a feature if it makes
it harder for developers to make the whitelist grow :)

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1458254921-17042-16-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qapi-schema.json
qapi/block-core.json
qapi/introspect.json
scripts/qapi.py