Re: [PATCH 10/15] rust: qom: wrap Object with Opaque<>

2025-02-25 Thread Zhao Liu
> @@ -621,7 +629,7 @@ pub trait ObjectImpl: ObjectType + IsA { > /// We expect the FFI user of this function to pass a valid pointer that > /// can be downcasted to type `T`. We also expect the device is > /// readable/writeable from one thread at any time. > -unsafe extern "C" fn rust_unparent_

[PATCH 10/15] rust: qom: wrap Object with Opaque<>

2025-02-21 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- rust/qemu-api/src/bindings.rs | 3 --- rust/qemu-api/src/memory.rs | 2 +- rust/qemu-api/src/qdev.rs | 6 +++--- rust/qemu-api/src/qom.rs | 35 ++- 4 files changed, 26 insertions(+), 20 deletions(-) diff --git a/rust/