]> git.proxmox.com Git - mirror_qemu.git/blame - include/qapi/qmp/qnull.h
qobject: Replace qobject_incref/QINCREF qobject_decref/QDECREF
[mirror_qemu.git] / include / qapi / qmp / qnull.h
CommitLineData
84be629d
HR
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
13#ifndef QNULL_H
14#define QNULL_H
15
16#include "qapi/qmp/qobject.h"
17
18struct QNull {
3d3eacae 19 struct QObjectBase_ base;
84be629d
HR
20};
21
22extern QNull qnull_;
23
24static inline QNull *qnull(void)
25{
cb3e7f08 26 qobject_ref(&qnull_);
84be629d
HR
27 return &qnull_;
28}
29
b38dd678
HR
30bool qnull_is_equal(const QObject *x, const QObject *y);
31
84be629d 32#endif /* QNULL_H */