rust: qom: convert type_info! macro to an associated const
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Oct 2024 10:47:12 +0000 (11:47 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Dec 2024 17:49:26 +0000 (18:49 +0100)
commit3701fb22dfd438993e76e158beb97683359d1dd9
tree7f7de3887761fa294b6a46a39f39363bf22eaa91
parent93ea0896eaa97adfcc664fa65b5b70e555a652ff
rust: qom: convert type_info! macro to an associated const

type_info! is only used in the definition of ObjectImpl::TYPE_INFO, and
in fact in all of them.  Pull type_info!'s definition into the ObjectImpl
trait, thus simplifying the external interface of qemu_api::definitions.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/device.rs
rust/qemu-api/src/definitions.rs
rust/qemu-api/tests/tests.rs