QEMU main repository: Please see https://www.qemu.org/docs/master/devel/submitting-a-patch.html for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website. http://www.qemu.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
559 B
34 lines
559 B
|
9 years ago
|
/*
|
||
|
|
* QNull
|
||
|
|
*
|
||
|
|
* Copyright (C) 2015 Red Hat, Inc.
|
||
|
|
*
|
||
|
|
* Authors:
|
||
|
|
* Markus Armbruster <armbru@redhat.com>
|
||
|
|
*
|
||
|
|
* This work is licensed under the terms of the GNU LGPL, version 2.1
|
||
|
|
* or later. See the COPYING.LIB file in the top-level directory.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef QNULL_H
|
||
|
|
#define QNULL_H
|
||
|
|
|
||
|
1 year ago
|
#include "qobject/qobject.h"
|
||
|
9 years ago
|
|
||
|
|
struct QNull {
|
||
|
8 years ago
|
struct QObjectBase_ base;
|
||
|
9 years ago
|
};
|
||
|
|
|
||
|
|
extern QNull qnull_;
|
||
|
|
|
||
|
|
static inline QNull *qnull(void)
|
||
|
|
{
|
||
|
8 years ago
|
return qobject_ref(&qnull_);
|
||
|
9 years ago
|
}
|
||
|
|
|
||
|
4 years ago
|
void qnull_unref(QNull *q);
|
||
|
|
|
||
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(QNull, qnull_unref)
|
||
|
|
|
||
|
9 years ago
|
#endif /* QNULL_H */
|