Merge remote-tracking branch 'remotes/famz/tags/docker-pull-request' into staging
[qemu/ar7.git] / include / qapi / qmp / qfloat.h
blobb5d15836b5e3fa2ea590e1bb0c8f97224c5318d5
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 "qapi/qmp/qobject.h"
19 typedef struct QFloat {
20 QObject base;
21 double value;
22 } QFloat;
24 QFloat *qfloat_from_double(double value);
25 double qfloat_get_double(const QFloat *qi);
26 QFloat *qobject_to_qfloat(const QObject *obj);
27 void qfloat_destroy_obj(QObject *obj);
29 #endif /* QFLOAT_H */