mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 04:43:54 -06:00
rust: qom: add default definitions for ObjectImpl
Remove a bunch of duplicate const definitions. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ab870fa106
commit
b2a4854508
3 changed files with 4 additions and 14 deletions
|
@ -14,10 +14,10 @@ pub trait ObjectImpl {
|
|||
const TYPE_INFO: TypeInfo;
|
||||
const TYPE_NAME: &'static CStr;
|
||||
const PARENT_TYPE_NAME: Option<&'static CStr>;
|
||||
const ABSTRACT: bool;
|
||||
const INSTANCE_INIT: Option<unsafe extern "C" fn(obj: *mut Object)>;
|
||||
const INSTANCE_POST_INIT: Option<unsafe extern "C" fn(obj: *mut Object)>;
|
||||
const INSTANCE_FINALIZE: Option<unsafe extern "C" fn(obj: *mut Object)>;
|
||||
const ABSTRACT: bool = false;
|
||||
const INSTANCE_INIT: Option<unsafe extern "C" fn(obj: *mut Object)> = None;
|
||||
const INSTANCE_POST_INIT: Option<unsafe extern "C" fn(obj: *mut Object)> = None;
|
||||
const INSTANCE_FINALIZE: Option<unsafe extern "C" fn(obj: *mut Object)> = None;
|
||||
}
|
||||
|
||||
pub trait Class {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue