Re: [PATCH 09/15] rust: irq: wrap IRQState with Opaque<>

2025-02-25 Thread Zhao Liu
On Tue, Feb 25, 2025 at 09:28:52AM +0100, Paolo Bonzini wrote: > Date: Tue, 25 Feb 2025 09:28:52 +0100 > From: Paolo Bonzini > Subject: Re: [PATCH 09/15] rust: irq: wrap IRQState with Opaque<> > > On 2/25/25 09:26, Zhao Liu wrote: > > > +/// An opaque wrapp

Re: [PATCH 09/15] rust: irq: wrap IRQState with Opaque<>

2025-02-25 Thread Paolo Bonzini
On 2/25/25 09:26, Zhao Liu wrote: +/// An opaque wrapper around [`bindings::IRQState`]. +#[repr(transparent)] +#[derive(Debug, qemu_api_macros::Wrapper)] +pub struct IRQState(Opaque); + /// Interrupt sources are used by devices to pass changes to a value (typically /// a boolean). The inter

Re: [PATCH 09/15] rust: irq: wrap IRQState with Opaque<>

2025-02-25 Thread Zhao Liu
> +/// An opaque wrapper around [`bindings::IRQState`]. > +#[repr(transparent)] > +#[derive(Debug, qemu_api_macros::Wrapper)] > +pub struct IRQState(Opaque); > + > /// Interrupt sources are used by devices to pass changes to a value > (typically > /// a boolean). The interrupt sink is usually a

[PATCH 09/15] rust: irq: wrap IRQState with Opaque<>

2025-02-21 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- rust/qemu-api/src/irq.rs| 15 ++- rust/qemu-api/src/sysbus.rs | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/rust/qemu-api/src/irq.rs b/rust/qemu-api/src/irq.rs index d1c9dc96eff..aec2825b2f9 100644 --- a/rust/qemu-api/src/