]> git.proxmox.com Git - qemu.git/commit
qapi-types/visit.py: Inheritance for structs
authorKevin Wolf <kwolf@redhat.com>
Thu, 19 Sep 2013 09:56:36 +0000 (11:56 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Oct 2013 14:50:01 +0000 (16:50 +0200)
commit622f557f5aaea1326c94ca4cddfa4eafeade3723
treeca74eac5379e1003c4634119001400b737adb472
parent14d36307ffdf949df9c1dd7f435e138b36f63bb0
qapi-types/visit.py: Inheritance for structs

This introduces a new 'base' key for struct definitions that refers to
another struct type. On the JSON level, the fields of the base type are
included directly into the same namespace as the fields of the defined
type, like with unions. On the C level, a pointer to a struct of the
base type is included.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
docs/qapi-code-gen.txt
scripts/qapi-types.py
scripts/qapi-visit.py