authorgravatar for ybham6@gmail.comfifty-six <ybham6@gmail.com> 2022-01-16 01:50:02-05:00
committergravatar for ybham6@gmail.comfifty-six <ybham6@gmail.com> 2022-01-16 02:05:27-05:00
logd276a1189de15f85523a0e6844d0fd316306838a
tree398971b0e737a709ec9136ac6f7c1f71d0e8dcfc
parent4771ac298b0c692750524cb7e94eaf0b4343ce2b

std/os/uefi: Align first field of EdidOverrideProtocolAttributes to 4

This makes the struct align(4), which allows it to be passed as flags more easily.

1 files changed, 1 insertions(+), 2 deletions(-)

lib/std/os/uefi/protocols/edid_override_protocol.zig+1-2
...@@ -8,7 +8,6 @@ pub const EdidOverrideProtocol = extern struct {...@@ -8,7 +8,6 @@ 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,
99
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 /// attributes must be align(4)
12 pub fn getEdid(self: *const EdidOverrideProtocol, handle: Handle, attributes: *EdidOverrideProtocolAttributes, edid_size: *usize, edid: *?[*]u8) Status {11 pub fn getEdid(self: *const EdidOverrideProtocol, handle: Handle, attributes: *EdidOverrideProtocolAttributes, edid_size: *usize, edid: *?[*]u8) Status {
13 return self._get_edid(self, handle, attributes, edid_size, edid);12 return self._get_edid(self, handle, attributes, edid_size, edid);
14 }13 }
...@@ -24,7 +23,7 @@ pub const EdidOverrideProtocol = extern struct {...@@ -24,7 +23,7 @@ pub const EdidOverrideProtocol = extern struct {
24};23};
2524
26pub const EdidOverrideProtocolAttributes = packed struct {25pub const EdidOverrideProtocolAttributes = packed struct {
27 dont_override: bool,26 dont_override: bool align(4),
28 enable_hot_plug: bool,27 enable_hot_plug: bool,
29 _pad: u30 = 0,28 _pad: u30 = 0,
30};29};