summaryrefslogtreecommitdiff
path: root/src/screen/drm/card.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2025-02-07 20:39:58 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2025-02-07 20:39:58 +0100
commitdae5bc02b1c934075e95694953b4330676e21611 (patch)
treefaa1a80849e5642d0b4bd8b4a91331b1da5b75bf /src/screen/drm/card.zig
parentfef523a8d7c87f272de18c8abd57e0cc53e2ef40 (diff)
estd: add graphics module
Diffstat (limited to 'src/screen/drm/card.zig')
-rw-r--r--src/screen/drm/card.zig20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/screen/drm/card.zig b/src/screen/drm/card.zig
index ef56142..b5ca893 100644
--- a/src/screen/drm/card.zig
+++ b/src/screen/drm/card.zig
@@ -25,32 +25,20 @@ pub const Card = struct {
};
}
- pub fn close(self: *Card) void {
+ pub fn close(self: Card) void {
self.file.close();
}
- pub fn resources(self: *Card) !drm.Resources {
+ pub fn resources(self: Card) !drm.Resources {
return drm.Resources.init(self);
}
- pub fn connector(self: *Card, id: u32) !drm.Connector {
- return drm.Connector.init(self, id);
- }
-
- pub fn encoder(self: *Card, id: u32) !drm.Encoder {
- return drm.Encoder.init(self, id);
- }
-
- pub fn crtc(self: *Card, id: u32) !drm.Crtc {
- return drm.Crtc.init(self, id);
- }
-
- pub fn create_buffer(self: *Card, width: u32, height: u32) !drm.Buffer {
+ pub fn create_buffer(self: Card, width: u32, height: u32) !drm.Buffer {
return drm.Buffer.init(self, width, height);
}
pub fn request(
- self: *Self,
+ self: *const Self,
comptime kind: drm.request.Kind,
payload: anytype
) !void {