aboutsummaryrefslogtreecommitdiff
path: root/qint.h
diff options
context:
space:
mode:
Diffstat (limited to 'qint.h')
-rw-r--r--qint.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/qint.h b/qint.h
new file mode 100644
index 0000000000..672b32196c
--- /dev/null
+++ b/qint.h
@@ -0,0 +1,16 @@
+#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 */