]> git.proxmox.com Git - mirror_qemu.git/blame - qobject/qnull.c
Merge tag 'pull-maintainer-may24-160524-2' of https://gitlab.com/stsquad/qemu into...
[mirror_qemu.git] / qobject / qnull.c
CommitLineData
481b002c
MA
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
f2ad72b3 13#include "qemu/osdep.h"
84be629d 14#include "qapi/qmp/qnull.h"
80d71121 15#include "qobject-internal.h"
481b002c 16
006ca09f
MA
17QNull qnull_ = {
18 .base = {
19 .type = QTYPE_QNULL,
20 .refcnt = 1,
21 },
481b002c 22};
b38dd678
HR
23
24/**
25 * qnull_is_equal(): Always return true because any two QNull objects
26 * are equal.
27 */
28bool qnull_is_equal(const QObject *x, const QObject *y)
29{
30 return true;
31}
d709bbf3
MAL
32
33void qnull_unref(QNull *q)
34{
35 qobject_unref(q);
36}