9pfs: use g_malloc0 to allocate space for xattr
[qemu/ar7.git] / include / qapi / qmp / qbool.h
bloba41111c3096f1df01eb6f0651c480ded2ab94aa1
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 typedef struct QBool {
20 QObject base;
21 bool value;
22 } QBool;
24 QBool *qbool_from_bool(bool value);
25 bool qbool_get_bool(const QBool *qb);
26 QBool *qobject_to_qbool(const QObject *obj);
27 void qbool_destroy_obj(QObject *obj);
29 #endif /* QBOOL_H */