Home
last modified time | relevance | path

Searched hist:"688 c67415858684a2feef4477e6bc8159ac090bd" (Results 1 – 2 of 2) sorted by relevance

/qemu/rust/qemu-api/src/
H A Dqom.rs688c67415858684a2feef4477e6bc8159ac090bd Fri Jan 17 10:23:14 UTC 2025 Paolo Bonzini <pbonzini@redhat.com> 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>
H A Dprelude.rs688c67415858684a2feef4477e6bc8159ac090bd Fri Jan 17 10:23:14 UTC 2025 Paolo Bonzini <pbonzini@redhat.com> 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>