]> git.proxmox.com Git - qemu.git/blobdiff - qobject.h
usb-uhci: symbolic names for pci registers
[qemu.git] / qobject.h
index dcc8c638e538cc4f53952e0ad747e1145efc3bbe..07de211ef0436190806578e74131fcff9e0a453d 100644 (file)
--- a/qobject.h
+++ b/qobject.h
@@ -40,6 +40,10 @@ typedef enum {
     QTYPE_QINT,
     QTYPE_QSTRING,
     QTYPE_QDICT,
+    QTYPE_QLIST,
+    QTYPE_QFLOAT,
+    QTYPE_QBOOL,
+    QTYPE_QERROR,
 } qtype_code;
 
 struct QObject;
@@ -59,7 +63,7 @@ typedef struct QObject {
     QObject base
 
 /* Get the 'base' part of an object */
-#define QOBJECT(obj) (&obj->base)
+#define QOBJECT(obj) (&(obj)->base)
 
 /* High-level interface for qobject_incref() */
 #define QINCREF(obj)      \