]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qobject/qnull.c
CODING_STYLE: indent example code as all others
[mirror_qemu.git] / qobject / qnull.c
index 69a21d1059a33015a34d43c85628130ef0edf3d6..00870a1824a2100b404beee94dd58938e0aeb721 100644 (file)
@@ -11,8 +11,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "qemu-common.h"
-#include "qapi/qmp/qobject.h"
+#include "qapi/qmp/qnull.h"
 
 QNull qnull_ = {
     .base = {
@@ -20,3 +19,12 @@ 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;
+}