root / qbool.h @ 77047bb7
History | View | Annotate | Download (535 Bytes)
1 | f7e6b192 | Anthony Liguori | /*
|
---|---|---|---|
2 | f7e6b192 | Anthony Liguori | * QBool Module
|
3 | f7e6b192 | Anthony Liguori | *
|
4 | f7e6b192 | Anthony Liguori | * Copyright IBM, Corp. 2009
|
5 | f7e6b192 | Anthony Liguori | *
|
6 | f7e6b192 | Anthony Liguori | * Authors:
|
7 | f7e6b192 | Anthony Liguori | * Anthony Liguori <aliguori@us.ibm.com>
|
8 | f7e6b192 | Anthony Liguori | *
|
9 | f7e6b192 | Anthony Liguori | * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
|
10 | f7e6b192 | Anthony Liguori | * See the COPYING.LIB file in the top-level directory.
|
11 | f7e6b192 | Anthony Liguori | *
|
12 | f7e6b192 | Anthony Liguori | */
|
13 | f7e6b192 | Anthony Liguori | |
14 | f7e6b192 | Anthony Liguori | #ifndef QBOOL_H
|
15 | f7e6b192 | Anthony Liguori | #define QBOOL_H
|
16 | f7e6b192 | Anthony Liguori | |
17 | f7e6b192 | Anthony Liguori | #include <stdint.h> |
18 | f7e6b192 | Anthony Liguori | #include "qobject.h" |
19 | f7e6b192 | Anthony Liguori | |
20 | f7e6b192 | Anthony Liguori | typedef struct QBool { |
21 | f7e6b192 | Anthony Liguori | QObject_HEAD; |
22 | f7e6b192 | Anthony Liguori | int value;
|
23 | f7e6b192 | Anthony Liguori | } QBool; |
24 | f7e6b192 | Anthony Liguori | |
25 | f7e6b192 | Anthony Liguori | QBool *qbool_from_int(int value);
|
26 | f7e6b192 | Anthony Liguori | int qbool_get_int(const QBool *qb); |
27 | f7e6b192 | Anthony Liguori | QBool *qobject_to_qbool(const QObject *obj);
|
28 | f7e6b192 | Anthony Liguori | |
29 | f7e6b192 | Anthony Liguori | #endif /* QBOOL_H */ |