aboutsummaryrefslogtreecommitdiff
path: root/src/wl/shm/root.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/shm/root.zig
parented0ec55697b11fa54ff661bc6c250398a096f85a (diff)
Use wayland.Context instead of *const wayland.Context
Diffstat (limited to 'src/wl/shm/root.zig')
-rw-r--r--src/wl/shm/root.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wl/shm/root.zig b/src/wl/shm/root.zig
index fd96727..741c7df 100644
--- a/src/wl/shm/root.zig
+++ b/src/wl/shm/root.zig
@@ -20,7 +20,7 @@ formats: std.EnumSet(Format) = .initEmpty(),
pub fn init(
self: *Self,
- ctx: *const wayland.Context,
+ ctx: wayland.Context,
) !void {
self.* = .{
.handle = try ctx.display.registry.add_object(
@@ -30,7 +30,7 @@ pub fn init(
};
}
-fn announce_format(self: * Self, ctx: *const wayland.Context, fmt: Format) void {
+fn announce_format(self: * Self, ctx: wayland.Context, fmt: Format) void {
_ = ctx;
self.formats.insert(fmt);
}
@@ -41,7 +41,7 @@ pub const handler: wl.Registry.GlobalHandler = .{
.handler = register,
};
-fn register(ctx: *const wayland.Context) ?wayland.Object.Ref {
+fn register(ctx: wayland.Context) ?wayland.Object.Ref {
const shm = ctx.allocator.create(Self) catch return null;
shm.init(ctx) catch return null;
@@ -49,7 +49,7 @@ fn register(ctx: *const wayland.Context) ?wayland.Object.Ref {
return shm.handle;
}
-pub fn create_pool(self: *Self, ctx: *const wayland.Context, size: usize) !*Pool {
+pub fn create_pool(self: *Self, ctx: wayland.Context, size: usize) !*Pool {
const pool = try ctx.allocator.create(Pool);
errdefer ctx.allocator.destroy(pool);
try pool.init(ctx, size);