mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00
rust: qom: allow initializing interface vtables
Unlike regular classes, interface vtables can only be obtained via object_class_dynamic_cast. Provide a wrapper that allows accessing the vtable and pass it to a ClassInitImpl implementation, for example ClassInitImpl<ResettableClass>. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
201ef001dd
commit
688c674158
2 changed files with 44 additions and 2 deletions
|
@ -9,6 +9,7 @@ pub use crate::cell::BqlRefCell;
|
|||
|
||||
pub use crate::qdev::DeviceMethods;
|
||||
|
||||
pub use crate::qom::InterfaceType;
|
||||
pub use crate::qom::IsA;
|
||||
pub use crate::qom::Object;
|
||||
pub use crate::qom::ObjectCast;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue