chardev/spice: build spice chardevs as module
[qemu/ar7.git] / qobject / qnull.c
blob00870a1824a2100b404beee94dd58938e0aeb721
1 /*
2 * QNull
4 * Copyright (C) 2015 Red Hat, Inc.
6 * Authors:
7 * Markus Armbruster <armbru@redhat.com>
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.
13 #include "qemu/osdep.h"
14 #include "qapi/qmp/qnull.h"
16 QNull qnull_ = {
17 .base = {
18 .type = QTYPE_QNULL,
19 .refcnt = 1,
23 /**
24 * qnull_is_equal(): Always return true because any two QNull objects
25 * are equal.
27 bool qnull_is_equal(const QObject *x, const QObject *y)
29 return true;