apci: switch piix4 to memory api
[qemu/opensuse.git] / qfloat.h
blob9d6787659c52202ac7ddbfb5b6c31511f75b2b24
1 /*
2 * QFloat 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 QFLOAT_H
15 #define QFLOAT_H
17 #include <stdint.h>
18 #include "qobject.h"
20 typedef struct QFloat {
21 QObject_HEAD;
22 double value;
23 } QFloat;
25 QFloat *qfloat_from_double(double value);
26 double qfloat_get_double(const QFloat *qi);
27 QFloat *qobject_to_qfloat(const QObject *obj);
29 #endif /* QFLOAT_H */