Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git] / include / qapi / qmp / qbool.h
blob0d09726939b9904ea5f4fe06f196d09f2c1b132a
1 /*
2 * QBool Module
4 * Copyright IBM, Corp. 2009
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10 * See the COPYING.LIB file in the top-level directory.
14 #ifndef QBOOL_H
15 #define QBOOL_H
17 #include "qapi/qmp/qobject.h"
19 struct QBool {
20 struct QObjectBase_ base;
21 bool value;
24 void qbool_unref(QBool *q);
26 G_DEFINE_AUTOPTR_CLEANUP_FUNC(QBool, qbool_unref)
28 QBool *qbool_from_bool(bool value);
29 bool qbool_get_bool(const QBool *qb);
31 #endif /* QBOOL_H */