aboutsummaryrefslogtreecommitdiff
path: root/include/qapi/qmp/qbool.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qapi/qmp/qbool.h')
-rw-r--r--include/qapi/qmp/qbool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qapi/qmp/qbool.h b/include/qapi/qmp/qbool.h
index 2f888d1057..0d09726939 100644
--- a/include/qapi/qmp/qbool.h
+++ b/include/qapi/qmp/qbool.h
@@ -21,6 +21,10 @@ struct QBool {
bool value;
};
+void qbool_unref(QBool *q);
+
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(QBool, qbool_unref)
+
QBool *qbool_from_bool(bool value);
bool qbool_get_bool(const QBool *qb);