| ... | @@ -8,7 +8,15 @@ pub const EdidOverrideProtocol = extern struct { | ... | @@ -8,7 +8,15 @@ pub const EdidOverrideProtocol = extern struct { |
| 8 | _get_edid: fn (*const EdidOverrideProtocol, Handle, *u32, *usize, *?[*]u8) callconv(.C) Status, | 8 | _get_edid: fn (*const EdidOverrideProtocol, Handle, *u32, *usize, *?[*]u8) callconv(.C) Status, |
| 9 | | 9 | |
| 10 | /// Returns policy information and potentially a replacement EDID for the specified video output device. | 10 | /// Returns policy information and potentially a replacement EDID for the specified video output device. |
| 11 | pub fn getEdid(self: *const EdidOverrideProtocol, handle: Handle, attributes: *EdidOverrideProtocolAttributes, edid_size: *usize, edid: *?[*]u8) Status { | 11 | pub fn getEdid( |
| | 12 | self: *const EdidOverrideProtocol, |
| | 13 | handle: Handle, |
| | 14 | /// The align(4) here should really be part of the EdidOverrideProtocolAttributes type. |
| | 15 | /// TODO remove this workaround when packed(u32) structs are implemented. |
| | 16 | attributes: *align(4) EdidOverrideProtocolAttributes, |
| | 17 | edid_size: *usize, |
| | 18 | edid: *?[*]u8, |
| | 19 | ) Status { |
| 12 | return self._get_edid(self, handle, @ptrCast(*u32, attributes), edid_size, edid); | 20 | return self._get_edid(self, handle, @ptrCast(*u32, attributes), edid_size, edid); |
| 13 | } | 21 | } |
| 14 | | 22 | |