* or later. See the COPYING.LIB file in the top-level directory.
*/
-#include "qemu-common.h"
-#include "qapi/qmp/qobject.h"
+#include "qemu/osdep.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;
+}