about summary refs log tree commit diff
path: root/bindings/gobject
diff options
context:
space:
mode:
authorAlexey Yerin <yyp@disroot.org>2023-05-28 14:10:05 +0300
committerAlexey Yerin <yyp@disroot.org>2023-05-28 14:15:22 +0300
commit16e730f540acfe6a0015464c81831cdfacaf107b (patch)
treea2aa04bf788dc16977fc6cda2ed874938c3c13c5 /bindings/gobject
Initial commit
Diffstat (limited to 'bindings/gobject')
-rw-r--r--bindings/gobject/types.ha13
1 files changed, 13 insertions, 0 deletions
diff --git a/bindings/gobject/types.ha b/bindings/gobject/types.ha
new file mode 100644
index 0000000..193bffd
--- /dev/null
+++ b/bindings/gobject/types.ha
@@ -0,0 +1,13 @@
+use types::c;
+
+export type ValueUnion = union {
+	v_int: int,
+	v_uint: uint,
+	v_long: c::long,
+	v_ulong: c::ulong,
+	v_int64: i64,
+	v_uint64: u64,
+	v_float: f32,
+	v_double: f64,
+	v_pointer: *void,
+};