summaryrefslogtreecommitdiff
path: root/src/screen/drm/card.zig
diff options
context:
space:
mode:
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 {