virtio: fix error message for number of queues
[qemu.git] / include / qapi / qmp / qbool.h
blob836d078866bdf00be53694b10be2dc6a81a67199
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 <stdbool.h>
18 #include "qapi/qmp/qobject.h"
20 typedef struct QBool {
21 QObject base;
22 bool value;
23 } QBool;
25 QBool *qbool_from_bool(bool value);
26 bool qbool_get_bool(const QBool *qb);
27 QBool *qobject_to_qbool(const QObject *obj);
28 void qbool_destroy_obj(QObject *obj);
30 #endif /* QBOOL_H */