/src/qemu/include/qobject/qnull.h
Line | Count | Source |
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 "qobject/qobject.h" |
17 | | |
18 | | struct QNull { |
19 | | struct QObjectBase_ base; |
20 | | }; |
21 | | |
22 | | extern QNull qnull_; |
23 | | |
24 | | static inline QNull *qnull(void) |
25 | 0 | { |
26 | | return qobject_ref(&qnull_); |
27 | 0 | } Unexecuted instantiation: migration.c:qnull Unexecuted instantiation: options.c:qnull Unexecuted instantiation: object.c:qnull Unexecuted instantiation: block.c:qnull Unexecuted instantiation: qapi-clone-visitor.c:qnull Unexecuted instantiation: qapi-dealloc-visitor.c:qnull Unexecuted instantiation: qapi-forward-visitor.c:qnull Unexecuted instantiation: qobject-input-visitor.c:qnull Unexecuted instantiation: qobject-output-visitor.c:qnull Unexecuted instantiation: string-input-visitor.c:qnull Unexecuted instantiation: qnull.c:qnull Unexecuted instantiation: qdict.c:qnull Unexecuted instantiation: qlist.c:qnull Unexecuted instantiation: qlit.c:qnull Unexecuted instantiation: qobject.c:qnull Unexecuted instantiation: json-parser.c:qnull |
28 | | |
29 | | void qnull_unref(QNull *q); |
30 | | |
31 | | G_DEFINE_AUTOPTR_CLEANUP_FUNC(QNull, qnull_unref) |
32 | | |
33 | | #endif /* QNULL_H */ |