diff options
| author | Paolo Bonzini | 2012-03-31 16:45:54 +0200 |
|---|---|---|
| committer | Andreas Färber | 2012-06-18 15:14:37 +0200 |
| commit | 745549c8d0273d3a3d9c3701534a34e70e2ea031 (patch) | |
| tree | e865509ebaf10b98949805eaf82ce4e43c9deeed /include | |
| parent | qom: Add class_base_init (diff) | |
| download | qemu-745549c8d0273d3a3d9c3701534a34e70e2ea031.tar.gz qemu-745549c8d0273d3a3d9c3701534a34e70e2ea031.tar.xz qemu-745549c8d0273d3a3d9c3701534a34e70e2ea031.zip | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/qemu/object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/object.h b/include/qemu/object.h index 3c29c17bc0..ff5444f487 100644 --- a/include/qemu/object.h +++ b/include/qemu/object.h @@ -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 |
