aboutsummaryrefslogtreecommitdiff
path: root/src/wl/shm/pool.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/pool.zig
parented0ec55697b11fa54ff661bc6c250398a096f85a (diff)
Use wayland.Context instead of *const wayland.Context
Diffstat (limited to 'src/wl/shm/pool.zig')
-rw-r--r--src/wl/shm/pool.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wl/shm/pool.zig b/src/wl/shm/pool.zig
index 40486d6..62b6c18 100644
--- a/src/wl/shm/pool.zig
+++ b/src/wl/shm/pool.zig
@@ -21,7 +21,7 @@ buffer: []u8,
pub fn init(
self: *Self,
- ctx: *const wayland.Context,
+ ctx: wayland.Context,
size: usize,
) !void {
var file = try AnonymousFile.init_random();
@@ -38,7 +38,7 @@ pub fn init(
};
}
-pub fn deinit(self: *Self, ctx: *const wayland.Context) void {
+pub fn deinit(self: *Self, ctx: wayland.Context) void {
self.file.close();
std.posix.munmap(@alignCast(self.buffer));
ctx.display.registry.disable_object(self.handle);
@@ -50,7 +50,7 @@ pub fn deinit(self: *Self, ctx: *const wayland.Context) void {
pub fn create_buffer(
self: *Self,
- ctx: *const wayland.Context,
+ ctx: wayland.Context,
offset: usize,
width: usize,
height: usize,