aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/src/memory.rs
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-02-14 12:09:53 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2025-03-06 12:44:46 +0100
commit7fb4a99df17c8ae5f5e00d643042b9d95477a426 (patch)
tree8ac391aa8fb526cfa2fe4984301c47022862c31c /rust/qemu-api/src/memory.rs
parent9c9a6a889cb3589779b019a343892aa0e9bdb254 (diff)
downloadqemu-7fb4a99df17c8ae5f5e00d643042b9d95477a426.zip
qemu-7fb4a99df17c8ae5f5e00d643042b9d95477a426.tar.gz
qemu-7fb4a99df17c8ae5f5e00d643042b9d95477a426.tar.bz2
rust: qom: wrap Object with Opaque<>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/src/memory.rs')
-rw-r--r--rust/qemu-api/src/memory.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/qemu-api/src/memory.rs b/rust/qemu-api/src/memory.rs
index 682951a..713c494 100644
--- a/rust/qemu-api/src/memory.rs
+++ b/rust/qemu-api/src/memory.rs
@@ -157,7 +157,7 @@ impl MemoryRegion {
let cstr = CString::new(name).unwrap();
memory_region_init_io(
slot,
- owner.cast::<Object>(),
+ owner.cast::<bindings::Object>(),
ops,
owner.cast::<c_void>(),
cstr.as_ptr(),