]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qobject/qnull.c
i386: Update new x86_apicid parsing rules with die_offset support
[mirror_qemu.git] / qobject / qnull.c
index c124d0585eb9edcc8e63b32dde5189e0613d0edd..00870a1824a2100b404beee94dd58938e0aeb721 100644 (file)
  */
 
 #include "qemu/osdep.h"
-#include "qemu-common.h"
-#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qnull.h"
 
-QObject qnull_ = {
-    .type = QTYPE_QNULL,
-    .refcnt = 1,
+QNull qnull_ = {
+    .base = {
+        .type = QTYPE_QNULL,
+        .refcnt = 1,
+    },
 };
+
+/**
+ * qnull_is_equal(): Always return true because any two QNull objects
+ * are equal.
+ */
+bool qnull_is_equal(const QObject *x, const QObject *y)
+{
+    return true;
+}