aboutsummaryrefslogtreecommitdiff
path: root/src/wl/registry.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/wl/registry.zig
parented0ec55697b11fa54ff661bc6c250398a096f85a (diff)
Use wayland.Context instead of *const wayland.Context
Diffstat (limited to 'src/wl/registry.zig')
-rw-r--r--src/wl/registry.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wl/registry.zig b/src/wl/registry.zig
index 2c15c67..dedf89f 100644
--- a/src/wl/registry.zig
+++ b/src/wl/registry.zig
@@ -18,7 +18,7 @@ pub const Request = union(enum) {
pub const GlobalHandler = struct {
interface: []const u8,
version: u32,
- handler: *const fn (ctx: *const wayland.Context) ?wayland.Object.Ref,
+ handler: *const fn (ctx: wayland.Context) ?wayland.Object.Ref,
};
objects: std.ArrayListUnmanaged(?wayland.Object) = .empty,
@@ -83,7 +83,7 @@ pub fn get_by_id(self: *Self, id: u32) ?*wayland.Object {
fn global(
self: *Self,
- ctx: *const wayland.Context,
+ ctx: wayland.Context,
name: u32,
interface: []const u8,
version: u32,
@@ -105,7 +105,7 @@ fn global(
fn global_remove(
self: *Self,
- ctx: *const wayland.Context,
+ ctx: wayland.Context,
name: u32,
) void {
_ = self;