mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-21 15:08:36 -07:00
qom: Make Object a type
Right now the base Object class has a special NULL type. Change this so that we will be able to add class_init and class_base_init callbacks. To do this, remove some special casing of ObjectClass that is not really necessary. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
3b50e311b4
commit
745549c8d0
2 changed files with 33 additions and 32 deletions
|
|
@ -33,7 +33,7 @@ typedef struct TypeInfo TypeInfo;
|
|||
typedef struct InterfaceClass InterfaceClass;
|
||||
typedef struct InterfaceInfo InterfaceInfo;
|
||||
|
||||
#define TYPE_OBJECT NULL
|
||||
#define TYPE_OBJECT "object"
|
||||
|
||||
/**
|
||||
* SECTION:object.h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue