mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
rust: qom: wrap Object with Opaque<>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
9c9a6a889c
commit
7fb4a99df1
4 changed files with 26 additions and 20 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue