mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00

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>
26 lines
664 B
Rust
26 lines
664 B
Rust
// Copyright 2024 Red Hat, Inc.
|
|
// Author(s): Paolo Bonzini <pbonzini@redhat.com>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
pub use crate::bitops::IntegerExt;
|
|
|
|
pub use crate::cell::BqlCell;
|
|
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;
|
|
pub use crate::qom::ObjectCastMut;
|
|
pub use crate::qom::ObjectDeref;
|
|
pub use crate::qom::ObjectClassMethods;
|
|
pub use crate::qom::ObjectMethods;
|
|
pub use crate::qom::ObjectType;
|
|
|
|
pub use crate::qom_isa;
|
|
|
|
pub use crate::sysbus::SysBusDeviceMethods;
|
|
|
|
pub use crate::vmstate::VMState;
|