[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 09/26] rust: qom: convert type_info! macro to an associated c
From: |
Zhao Liu |
Subject: |
Re: [PATCH 09/26] rust: qom: convert type_info! macro to an associated const |
Date: |
Tue, 10 Dec 2024 16:30:03 +0800 |
On Mon, Dec 09, 2024 at 01:37:00PM +0100, Paolo Bonzini wrote:
> Date: Mon, 9 Dec 2024 13:37:00 +0100
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: [PATCH 09/26] rust: qom: convert type_info! macro to an associated
> const
> X-Mailer: git-send-email 2.47.1
>
> 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 | 6 ++--
> rust/qemu-api/src/definitions.rs | 50 ++++++++++++++------------------
> rust/qemu-api/tests/tests.rs | 1 -
> 3 files changed, 24 insertions(+), 33 deletions(-)
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
- [PATCH 06/26] rust: add a bit operation module, (continued)
- [PATCH 06/26] rust: add a bit operation module, Paolo Bonzini, 2024/12/09
- [PATCH 05/26] rust: add bindings for interrupt sources, Paolo Bonzini, 2024/12/09
- [PATCH 08/26] rust: qom: rename Class trait to ClassInitImpl, Paolo Bonzini, 2024/12/09
- [PATCH 10/26] rust: qom: move ClassInitImpl to the instance side, Paolo Bonzini, 2024/12/09
- [PATCH 09/26] rust: qom: convert type_info! macro to an associated const, Paolo Bonzini, 2024/12/09
- Re: [PATCH 09/26] rust: qom: convert type_info! macro to an associated const,
Zhao Liu <=
- [PATCH 11/26] rust: qdev: move device_class_init! body to generic function, ClassInitImpl implementation to macro, Paolo Bonzini, 2024/12/09
- [PATCH 13/26] rust: qom: automatically use Drop trait to implement instance_finalize, Paolo Bonzini, 2024/12/09
- [PATCH 16/26] rust: qom: change the parent type to an associated type, Paolo Bonzini, 2024/12/09
- [PATCH 17/26] rust: qom: put class_init together from multiple ClassInitImpl<>, Paolo Bonzini, 2024/12/09