rust: qom: move bridge for TypeInfo functions out of pl011
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Oct 2024 09:45:55 +0000 (10:45 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Dec 2024 09:32:15 +0000 (10:32 +0100)
commit1f9d52c9388d14c3f5a605543a8ef53dceaad5bb
treed8d57511e82015fbd9a89fa2c63ccdc9d71fa210
parentf75fb90ff2af75cd4405fe4c6ba0c0c38a120590
rust: qom: move bridge for TypeInfo functions out of pl011

Allow the ObjectImpl trait to expose Rust functions that avoid raw
pointers (though INSTANCE_INIT for example is still unsafe).
ObjectImpl::TYPE_INFO adds thunks around the functions in
ObjectImpl.

While at it, document `TypeInfo`.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/device.rs
rust/qemu-api/src/definitions.rs