From ed0ec55697b11fa54ff661bc6c250398a096f85a Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 27 Aug 2025 20:34:57 +0200 Subject: update Object.Ref to be a struct --- src/object.zig | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/object.zig') 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 ( -- cgit v1.2.3-70-g09d2