diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2025-09-08 12:50:02 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-09-17 19:00:58 +0200 |
| commit | e4444d71e85b5f5ea8311eb59fea3e52f5fc5a14 (patch) | |
| tree | 8f955e1324f0b039540c368db3537f10dcd8796a /rust/qom/src | |
| parent | b0f6bf8a5b3b3a9dd4a11f792084d39a76b4b007 (diff) | |
| download | focaccia-qemu-e4444d71e85b5f5ea8311eb59fea3e52f5fc5a14.tar.gz focaccia-qemu-e4444d71e85b5f5ea8311eb59fea3e52f5fc5a14.zip | |
rust: re-export qemu macros from common/qom/hwcore
This is just a bit nicer. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Link: https://lore.kernel.org/r/20250827104147.717203-22-marcandre.lureau@redhat.com Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qom/src')
| -rw-r--r-- | rust/qom/src/lib.rs | 2 | ||||
| -rw-r--r-- | rust/qom/src/qom.rs | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/rust/qom/src/lib.rs b/rust/qom/src/lib.rs index 204c6fea2f..24c44fc2af 100644 --- a/rust/qom/src/lib.rs +++ b/rust/qom/src/lib.rs @@ -1,5 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later +pub use qemu_macros::Object; + pub mod bindings; // preserve one-item-per-"use" syntax, it is clearer diff --git a/rust/qom/src/qom.rs b/rust/qom/src/qom.rs index 2cd1d85011..5808051cd7 100644 --- a/rust/qom/src/qom.rs +++ b/rust/qom/src/qom.rs @@ -112,7 +112,7 @@ pub use crate::bindings::{type_register_static, ObjectClass}; /// A safe wrapper around [`bindings::Object`]. #[repr(transparent)] -#[derive(Debug, qemu_macros::Wrapper)] +#[derive(Debug, common::Wrapper)] pub struct Object(Opaque<bindings::Object>); unsafe impl Send for Object {} @@ -173,7 +173,7 @@ macro_rules! qom_isa { /// /// ```ignore /// #[repr(C)] -/// #[derive(qemu_macros::Object)] +/// #[derive(qom::Object)] /// pub struct MyDevice { /// parent: ParentField<DeviceState>, /// ... |