diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-17 11:23:14 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-13 12:19:33 +0100 |
commit | 688c67415858684a2feef4477e6bc8159ac090bd (patch) | |
tree | 97af940b312bbb0150ec3b82f72ba610a889b34c /rust/hw | |
parent | 201ef001dd40fdb11c83f3e47604219c374590ec (diff) | |
download | qemu-688c67415858684a2feef4477e6bc8159ac090bd.zip qemu-688c67415858684a2feef4477e6bc8159ac090bd.tar.gz qemu-688c67415858684a2feef4477e6bc8159ac090bd.tar.bz2 |
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>
Diffstat (limited to 'rust/hw')
0 files changed, 0 insertions, 0 deletions