]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qobject/qnull.c
Merge tag 'pull-maintainer-may24-160524-2' of https://gitlab.com/stsquad/qemu into...
[mirror_qemu.git] / qobject / qnull.c
index 69a21d1059a33015a34d43c85628130ef0edf3d6..445a5db7f36f83b568e30bf619e5a2d49d7f610e 100644 (file)
@@ -11,8 +11,8 @@
  */
 
 #include "qemu/osdep.h"
-#include "qemu-common.h"
-#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qnull.h"
+#include "qobject-internal.h"
 
 QNull qnull_ = {
     .base = {
@@ -20,3 +20,17 @@ QNull 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;
+}
+
+void qnull_unref(QNull *q)
+{
+    qobject_unref(q);
+}