aboutsummaryrefslogtreecommitdiff
path: root/src/event-set.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-08-29 18:21:48 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2025-08-29 18:21:48 +0200
commit4feb8c7dab2b0a3492b8248ee12c3f0a475106f1 (patch)
treef89a6389e24ab362cbdb21e1dbd4f96b404472fd /src/event-set.zig
parented0ec55697b11fa54ff661bc6c250398a096f85a (diff)
Use wayland.Context instead of *const wayland.Context
Diffstat (limited to 'src/event-set.zig')
-rw-r--r--src/event-set.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event-set.zig b/src/event-set.zig
index 0ff16f1..193e12d 100644
--- a/src/event-set.zig
+++ b/src/event-set.zig
@@ -3,7 +3,7 @@ const wayland = @import("root.zig");
pub fn EventSet(T: type, events: anytype) type {
return struct {
- pub fn on_event(ptr: *anyopaque, ctx: *const wayland.Context, opcode: u16, args: []const u8) void {
+ pub fn on_event(ptr: *anyopaque, ctx: wayland.Context, opcode: u16, args: []const u8) void {
var offset: usize = 0;
inline for (events, 0..) |event, index| {
if (@TypeOf(event) != @TypeOf(null) and index == opcode) {
@@ -66,7 +66,7 @@ test {
a: u32 = 0,
b: u32 = 0,
- pub fn something(self: *@This(), _: *const wayland.Context, a: u32, b: u32) void {
+ pub fn something(self: *@This(), _: wayland.Context, a: u32, b: u32) void {
self.a = a;
self.b = b;
}