diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-02 19:58:26 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-02 19:58:26 +0100 |
| commit | 3f4375a14218796cbd7bfff1c8cfff0f7bb1f6df (patch) | |
| tree | 1521b91b8f99af588156058b5f9aa12bb1626ac7 /src/screen/drm/encoder/root.zig | |
| parent | 8d062a90b1ffbe9e00334fa3e9e939406bd32141 (diff) | |
change .editorconfig
Diffstat (limited to 'src/screen/drm/encoder/root.zig')
| -rw-r--r-- | src/screen/drm/encoder/root.zig | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/screen/drm/encoder/root.zig b/src/screen/drm/encoder/root.zig index 0712c76..7b8932a 100644 --- a/src/screen/drm/encoder/root.zig +++ b/src/screen/drm/encoder/root.zig @@ -5,36 +5,36 @@ const Card = @import("../card.zig").Card; const Type = @import("type.zig").Type; pub const RawEncoder = extern struct { - id: u32, - type: Type, - crtc_id: u32, - possible_crtcs: u32, - possible_clones: u32, + id: u32, + type: Type, + crtc_id: u32, + possible_crtcs: u32, + possible_clones: u32, }; pub const Encoder = struct { - const Self = @This(); + const Self = @This(); - id: u32, - type: Type, - possible_crtcs: u32, - possible_clones: u32, - card: *Card, + id: u32, + type: Type, + possible_crtcs: u32, + possible_clones: u32, + card: *Card, - pub fn init(card: *Card, id: u32) !Self { - var raw = std.mem.zeroInit(RawEncoder, .{ .id = id }); - try Drm.get_encoder.request(card.file.handle, RawEncoder, &raw); + pub fn init(card: *Card, id: u32) !Self { + var raw = std.mem.zeroInit(RawEncoder, .{ .id = id }); + try Drm.get_encoder.request(card.file.handle, RawEncoder, &raw); - return .{ - .id = raw.id, - .type = raw.type, - .possible_crtcs = raw.possible_crtcs, - .possible_clones = raw.possible_clones, - .card = card - }; - } + return .{ + .id = raw.id, + .type = raw.type, + .possible_crtcs = raw.possible_crtcs, + .possible_clones = raw.possible_clones, + .card = card + }; + } - pub fn deinit(self: *Self) void { - _ = self; - } + pub fn deinit(self: *Self) void { + _ = self; + } }; |