qemu-patch-raspberry4/qapi
Michael Roth 146db9f919 qapi: dealloc visitor, implement visit_start_union
If the .data field of a QAPI Union is NULL, we don't need to free
any of the union fields.

Make use of the new visit_start_union interface to access this
information and instruct the generated code to not visit these
fields when this occurs.

Cc: qemu-stable@nongnu.org
Reported-by: Fam Zheng <famz@redhat.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2014-09-26 13:14:10 -04:00
..
block-core.json block: delete cow block driver 2014-09-22 11:39:45 +01:00
block.json
common.json
event.json
Makefile.objs
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
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-event.c
qmp-input-visitor.c
qmp-output-visitor.c
qmp-registry.c
string-input-visitor.c
string-output-visitor.c
trace.json trace: [qmp] Add commands to query and control event tracing state 2014-09-26 09:34:38 +01:00