summaryrefslogtreecommitdiff
path: root/qbool.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-11-11 10:37:39 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-17 08:49:39 -0600
commitf7e6b1927f00631b1a2bf59e597ea4640dbddb31 (patch)
treed822015b84b41953a598756aa0014ed6917ed58b /qbool.h
parent9c9efb6b2962de5eec1cf0e394a96a55c36f714d (diff)
downloadqemu-f7e6b1927f00631b1a2bf59e597ea4640dbddb31.tar.gz
qemu-f7e6b1927f00631b1a2bf59e597ea4640dbddb31.tar.bz2
qemu-f7e6b1927f00631b1a2bf59e597ea4640dbddb31.zip
Add a QBool type
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qbool.h')
-rw-r--r--qbool.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/qbool.h b/qbool.h
new file mode 100644
index 0000000000..fe66fcd455
--- /dev/null
+++ b/qbool.h
@@ -0,0 +1,29 @@
+/*
+ * QBool Module
+ *
+ * Copyright IBM, Corp. 2009
+ *
+ * Authors:
+ * Anthony Liguori <aliguori@us.ibm.com>
+ *
+ * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
+ * See the COPYING.LIB file in the top-level directory.
+ *
+ */
+
+#ifndef QBOOL_H
+#define QBOOL_H
+
+#include <stdint.h>
+#include "qobject.h"
+
+typedef struct QBool {
+ QObject_HEAD;
+ int value;
+} QBool;
+
+QBool *qbool_from_int(int value);
+int qbool_get_int(const QBool *qb);
+QBool *qobject_to_qbool(const QObject *obj);
+
+#endif /* QBOOL_H */