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:
Paolo Bonzini 2024-10-31 10:14:11 +01:00
parent 4aed0296b3
commit 716d89f9cc
5 changed files with 25 additions and 17 deletions

View file

@ -6,10 +6,13 @@
use std::ffi::CStr;
pub use bindings::{DeviceClass, DeviceState, Property};
use crate::{
bindings::{self, DeviceClass, DeviceState, Error, ObjectClass, Property, VMStateDescription},
bindings::{self, Error},
prelude::*,
qom::ClassInitImpl,
qom::{ClassInitImpl, ObjectClass},
vmstate::VMStateDescription,
};
/// Trait providing the contents of [`DeviceClass`].