mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
rust: qom: rename Class trait to ClassInitImpl
While at it, document it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b2a4854508
commit
93ea0896ea
3 changed files with 26 additions and 7 deletions
|
@ -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<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue