mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -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
|
@ -117,7 +117,7 @@ pub struct PL011Class {
|
|||
_inner: [u8; 0],
|
||||
}
|
||||
|
||||
impl qemu_api::definitions::Class for PL011Class {
|
||||
impl qemu_api::definitions::ClassInitImpl for PL011Class {
|
||||
const CLASS_INIT: Option<unsafe extern "C" fn(klass: *mut ObjectClass, data: *mut c_void)> =
|
||||
Some(crate::device_class::pl011_class_init);
|
||||
const CLASS_BASE_INIT: Option<
|
||||
|
@ -650,7 +650,7 @@ pub unsafe extern "C" fn pl011_luminary_init(obj: *mut Object) {
|
|||
}
|
||||
}
|
||||
|
||||
impl qemu_api::definitions::Class for PL011LuminaryClass {
|
||||
impl qemu_api::definitions::ClassInitImpl for PL011LuminaryClass {
|
||||
const CLASS_INIT: Option<unsafe extern "C" fn(klass: *mut ObjectClass, data: *mut c_void)> =
|
||||
None;
|
||||
const CLASS_BASE_INIT: Option<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue