mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
rust: re-export C types from qemu-api submodules
Long term we do not want device code to use "bindings" at all, so make it possible to get the relevant types from the other modules of qemu-api. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4aed0296b3
commit
716d89f9cc
5 changed files with 25 additions and 17 deletions
|
@ -5,8 +5,13 @@
|
|||
use std::ffi::CStr;
|
||||
|
||||
use qemu_api::{
|
||||
bindings::*, c_str, declare_properties, define_property, prelude::*, qdev::DeviceImpl,
|
||||
qom::ObjectImpl, zeroable::Zeroable,
|
||||
bindings::*,
|
||||
c_str, declare_properties, define_property,
|
||||
prelude::*,
|
||||
qdev::{DeviceImpl, DeviceState, Property},
|
||||
qom::ObjectImpl,
|
||||
vmstate::VMStateDescription,
|
||||
zeroable::Zeroable,
|
||||
};
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue