2
0

qnull.c 567 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * QNull
  3. *
  4. * Copyright (C) 2015 Red Hat, Inc.
  5. *
  6. * Authors:
  7. * Markus Armbruster <armbru@redhat.com>
  8. *
  9. * This work is licensed under the terms of the GNU LGPL, version 2.1
  10. * or later. See the COPYING.LIB file in the top-level directory.
  11. */
  12. #include "qemu/osdep.h"
  13. #include "qapi/qmp/qnull.h"
  14. QNull qnull_ = {
  15. .base = {
  16. .type = QTYPE_QNULL,
  17. .refcnt = 1,
  18. },
  19. };
  20. /**
  21. * qnull_is_equal(): Always return true because any two QNull objects
  22. * are equal.
  23. */
  24. bool qnull_is_equal(const QObject *x, const QObject *y)
  25. {
  26. return true;
  27. }