qemu-e2k/qapi
Eric Blake 4752cdbbf3 qapi: Drop inline nested struct in query-version
A future patch will be using a 'name':{dictionary} entry in the
QAPI schema to specify a default value for an optional argument
(see previous commit message for more details why); but existing
use of inline nested structs conflicts with that goal. This patch
fixes one of only two commands relying on nested types, by
breaking the nesting into an explicit type; it means that the
type is now boxed instead of unboxed in C code, but the QMP wire
format is unaffected by this change.

Prefer the safer g_new0() while making the conversion.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2015-05-05 18:39:02 +02:00
..
block-core.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
block.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00
common.json qapi: Drop inline nested struct in query-version 2015-05-05 18:39:02 +02:00
event.json
Makefile.objs rename parse_enum_option to qapi_enum_parse and make it public 2014-09-08 11:12:43 +01:00
opts-visitor.c
qapi-dealloc-visitor.c qapi: dealloc visitor, implement visit_start_union 2014-09-26 13:14:10 -04:00
qapi-util.c rename parse_enum_option to qapi_enum_parse and make it public 2014-09-08 11:12:43 +01:00
qapi-visit-core.c qapi: add visit_start_union and visit_end_union 2014-09-26 13:14:10 -04:00
qmp-dispatch.c qmp: Eliminate silly QERR_COMMAND_NOT_FOUND macro 2015-01-29 10:02:18 +01:00
qmp-event.c
qmp-input-visitor.c
qmp-output-visitor.c
qmp-registry.c
string-input-visitor.c
string-output-visitor.c
trace.json qapi: Use 'struct' instead of 'type' in schema 2015-05-05 18:39:01 +02:00