Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / qapi / qmp / qnull.h
blob7feb7c7d830d9e39022530f78775a5df2b27a8ff
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 #ifndef QNULL_H
14 #define QNULL_H
16 #include "qapi/qmp/qobject.h"
18 struct QNull {
19 struct QObjectBase_ base;
22 extern QNull qnull_;
24 static inline QNull *qnull(void)
26 return qobject_ref(&qnull_);
29 void qnull_unref(QNull *q);
31 G_DEFINE_AUTOPTR_CLEANUP_FUNC(QNull, qnull_unref)
33 #endif /* QNULL_H */