mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
rust: chardev: wrap Chardev with Opaque<>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
af0868cba3
commit
48627510a7
3 changed files with 7 additions and 5 deletions
|
@ -334,6 +334,7 @@ where
|
|||
fn prop_set_chr(&self, propname: &str, chr: &Owned<Chardev>) {
|
||||
assert!(bql_locked());
|
||||
let c_propname = CString::new(propname).unwrap();
|
||||
let chr: &Chardev = chr;
|
||||
unsafe {
|
||||
bindings::qdev_prop_set_chr(
|
||||
self.upcast().as_mut_ptr(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue