From 745549c8d0273d3a3d9c3701534a34e70e2ea031 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Sat, 31 Mar 2012 16:45:54 +0200 Subject: qom: Make Object a type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Andreas Färber --- include/qemu/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.1