aboutsummaryrefslogtreecommitdiff
path: root/src/object.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.zig')
-rw-r--r--src/object.zig12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/object.zig b/src/object.zig
index 5502d3d..5b7726e 100644
--- a/src/object.zig
+++ b/src/object.zig
@@ -3,7 +3,17 @@ const wayland = @import("root.zig");
const Self = @This();
-pub const Ref = usize;
+pub const Ref = struct {
+ id: u32,
+
+ pub const display: @This() = .{
+ .id = 1,
+ };
+
+ pub const registry: @This() = .{
+ .id = 2,
+ };
+};
const VTable = struct {
on_event: *const fn (