diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-01 15:25:05 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-01 15:25:05 +0100 |
| commit | 857261e9be33e862795ae6228ea05caf20c1a9d5 (patch) | |
| tree | 2ee5ed900bd2b8f757400cc2f3aae6c6fde39460 /src/screen/drm/card.zig | |
| parent | 740281072f9e53e5ce62590a352f35d8cc02770a (diff) | |
screen: drm add encoder
Diffstat (limited to 'src/screen/drm/card.zig')
| -rw-r--r-- | src/screen/drm/card.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/screen/drm/card.zig b/src/screen/drm/card.zig index 9ad34fb..c5cca24 100644 --- a/src/screen/drm/card.zig +++ b/src/screen/drm/card.zig @@ -5,6 +5,7 @@ const cerror = @import("../cerror.zig"); const Resources = @import("resources.zig").Resources; const Connector = @import("connector/root.zig").Connector; +const Encoder = @import("encoder/root.zig").Encoder; pub const Card = struct { @@ -42,4 +43,8 @@ pub const Card = struct { pub fn connector(self: *Card, id: u32) !Connector { return Connector.init(self, id); } + + pub fn encoder(self: *Card, id: u32) !Encoder { + return Encoder.init(self, id); + } }; |