aboutsummaryrefslogtreecommitdiff
path: root/include/qapi/qmp/qnum.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qapi/qmp/qnum.h')
-rw-r--r--include/qapi/qmp/qnum.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qapi/qmp/qnum.h b/include/qapi/qmp/qnum.h
index 7f84e20bfb..e86788dd2e 100644
--- a/include/qapi/qmp/qnum.h
+++ b/include/qapi/qmp/qnum.h
@@ -54,6 +54,10 @@ struct QNum {
} u;
};
+void qnum_unref(QNum *q);
+
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(QNum, qnum_unref)
+
QNum *qnum_from_int(int64_t value);
QNum *qnum_from_uint(uint64_t value);
QNum *qnum_from_double(double value);