Merge remote-tracking branch 'remotes/jnsnow/tags/ide-pull-request' into staging
[qemu.git] / include / qapi / qmp / qbool.h
blobc4eaab9bb9f03ff76e50e235d0981063be4328bc
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 <stdint.h>
18 #include "qapi/qmp/qobject.h"
20 typedef struct QBool {
21 QObject_HEAD;
22 int value;
23 } QBool;
25 QBool *qbool_from_int(int value);
26 int qbool_get_int(const QBool *qb);
27 QBool *qobject_to_qbool(const QObject *obj);
29 #endif /* QBOOL_H */