blob: 00870a1824a2100b404beee94dd58938e0aeb721 [file] [log] [blame]
Markus Armbruster481b0022015-04-29 15:35:05 -06001/*
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
Peter Maydellf2ad72b2016-01-29 17:50:01 +000013#include "qemu/osdep.h"
Max Reitz84be6292017-11-14 19:01:23 +010014#include "qapi/qmp/qnull.h"
Markus Armbruster481b0022015-04-29 15:35:05 -060015
Markus Armbruster006ca092017-06-26 13:52:24 +020016QNull qnull_ = {
17 .base = {
18 .type = QTYPE_QNULL,
19 .refcnt = 1,
20 },
Markus Armbruster481b0022015-04-29 15:35:05 -060021};
Max Reitzb38dd672017-11-14 19:01:25 +010022
23/**
24 * qnull_is_equal(): Always return true because any two QNull objects
25 * are equal.
26 */
27bool qnull_is_equal(const QObject *x, const QObject *y)
28{
29 return true;
30}