Searched hist:cb36da9bd84076470f36da56542e85a2436e3d95 (Results 1 – 2 of 2) sorted by relevance
/qemu/rust/qemu-api/src/ |
H A D | qdev.rs | cb36da9bd84076470f36da56542e85a2436e3d95 Tue Oct 29 14:00:26 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> 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>
|
H A D | qom.rs | cb36da9bd84076470f36da56542e85a2436e3d95 Tue Oct 29 14:00:26 UTC 2024 Paolo Bonzini <pbonzini@redhat.com> 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>
|