diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-10-29 15:00:26 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-19 19:36:37 +0100 |
commit | cb36da9bd84076470f36da56542e85a2436e3d95 (patch) | |
tree | 90d90f6debe5f234345a2781dc14329f92d00e9e /rust/qemu-api/meson.build | |
parent | 6dd818fbbbe3efc63889e7d811ac6b70e788c629 (diff) | |
download | qemu-cb36da9bd84076470f36da56542e85a2436e3d95.zip qemu-cb36da9bd84076470f36da56542e85a2436e3d95.tar.gz qemu-cb36da9bd84076470f36da56542e85a2436e3d95.tar.bz2 |
rust: qom: add possibility of overriding unparent
Add a blanket definition of ClassInitImpl<ObjectClass> that thunks
ObjectImpl::UNPARENT and overrides it in ObjectClass if it is not
None.
ClassInitImpl<DeviceClass> can now call its superclass's ClassInitImpl,
so that the C and Rust hierarchies match more closely.
This is mostly done as an example of implementing the metaclass
hierarchy under ClassInitImpl.
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/meson.build')
0 files changed, 0 insertions, 0 deletions