diff options
Diffstat (limited to 'include/qapi/qmp/qnull.h')
-rw-r--r-- | include/qapi/qmp/qnull.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qapi/qmp/qnull.h b/include/qapi/qmp/qnull.h index e84ecce..7feb7c7 100644 --- a/include/qapi/qmp/qnull.h +++ b/include/qapi/qmp/qnull.h @@ -26,4 +26,8 @@ static inline QNull *qnull(void) return qobject_ref(&qnull_); } +void qnull_unref(QNull *q); + +G_DEFINE_AUTOPTR_CLEANUP_FUNC(QNull, qnull_unref) + #endif /* QNULL_H */ |