mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 12:09:58 +00:00
6b8d1ece70
QInt is a high-level data type that can be used to represent integers, internally it stores an int64_t value. The following functions are available: - qint_from_int() Create a new QInt - qint_get_int() Get the stored integer Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
17 lines
279 B
C
17 lines
279 B
C
#ifndef QINT_H
|
|
#define QINT_H
|
|
|
|
#include <stdint.h>
|
|
#include "qobject.h"
|
|
|
|
typedef struct QInt {
|
|
QObject_HEAD;
|
|
int64_t value;
|
|
} QInt;
|
|
|
|
QInt *qint_from_int(int64_t value);
|
|
int64_t qint_get_int(const QInt *qi);
|
|
QInt *qobject_to_qint(const QObject *obj);
|
|
|
|
#endif /* QINT_H */
|