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