diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-03-31 16:45:54 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-06-18 15:14:37 +0200 |
commit | 745549c8d0273d3a3d9c3701534a34e70e2ea031 (patch) | |
tree | e865509ebaf10b98949805eaf82ce4e43c9deeed /include | |
parent | 3b50e311b48795707fed6d4f474711db87e341b9 (diff) | |
download | qemu-745549c8d0273d3a3d9c3701534a34e70e2ea031.tar.gz qemu-745549c8d0273d3a3d9c3701534a34e70e2ea031.tar.bz2 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 |