aboutsummaryrefslogtreecommitdiff
path: root/rust/qemu-api/tests
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-10-28 13:05:43 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2024-12-10 18:49:26 +0100
commit93ea0896eaa97adfcc664fa65b5b70e555a652ff (patch)
treeca5b42b38f6007750e1ff9fe3369badadd3acd5d /rust/qemu-api/tests
parentb2a4854508a02fc8a585890e0272c8ae5fbad5c1 (diff)
downloadqemu-93ea0896eaa97adfcc664fa65b5b70e555a652ff.zip
qemu-93ea0896eaa97adfcc664fa65b5b70e555a652ff.tar.gz
qemu-93ea0896eaa97adfcc664fa65b5b70e555a652ff.tar.bz2
rust: qom: rename Class trait to ClassInitImpl
While at it, document it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/tests')
-rw-r--r--rust/qemu-api/tests/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/qemu-api/tests/tests.rs b/rust/qemu-api/tests/tests.rs
index f793ff2..704c63c 100644
--- a/rust/qemu-api/tests/tests.rs
+++ b/rust/qemu-api/tests/tests.rs
@@ -7,7 +7,7 @@ use std::{ffi::CStr, os::raw::c_void};
use qemu_api::{
bindings::*,
c_str, declare_properties, define_property,
- definitions::{Class, ObjectImpl},
+ definitions::{ClassInitImpl, ObjectImpl},
device_class, device_class_init,
zeroable::Zeroable,
};
@@ -60,7 +60,7 @@ fn test_device_decl_macros() {
const PARENT_TYPE_NAME: Option<&'static CStr> = Some(device_class::TYPE_DEVICE);
}
- impl Class for DummyClass {
+ impl ClassInitImpl for DummyClass {
const CLASS_INIT: Option<unsafe extern "C" fn(klass: *mut ObjectClass, data: *mut c_void)> =
Some(dummy_class_init);
const CLASS_BASE_INIT: Option<