| author | |
| committer | |
| log | d08191e146a63d8f9de15f33f92a992f96d021c0 |
| tree | 952136b9c1d8ae5d621f19fa52417f4ff58ff1df |
| parent | 7ce1ee1bce4d9ca05a647c9c390c6525be0b6362 |
| parent | 47e72132e2861146491a3dc98035b297713ac492 |
| signature |
std.os.uefi: fix some mistakes3 files changed, 5 insertions(+), 6 deletions(-)
lib/std/os/uefi/protocols/managed_network_protocol.zig+2-3| ... | ... | @@ -15,7 +15,7 @@ pub const ManagedNetworkProtocol = extern struct { |
| 15 | 15 | _transmit: std.meta.FnPtr(fn (*const ManagedNetworkProtocol, *const ManagedNetworkCompletionToken) callconv(.C) Status), |
| 16 | 16 | _receive: std.meta.FnPtr(fn (*const ManagedNetworkProtocol, *const ManagedNetworkCompletionToken) callconv(.C) Status), |
| 17 | 17 | _cancel: std.meta.FnPtr(fn (*const ManagedNetworkProtocol, ?*const ManagedNetworkCompletionToken) callconv(.C) Status), |
| 18 | _poll: std.meta.FnPtr(fn (*const ManagedNetworkProtocol) callconv(.C) usize), | |
| 18 | _poll: std.meta.FnPtr(fn (*const ManagedNetworkProtocol) callconv(.C) Status), | |
| 19 | 19 | |
| 20 | 20 | /// Returns the operational parameters for the current MNP child driver. |
| 21 | 21 | /// May also support returning the underlying SNP driver mode data. |
| ... | ... | @@ -31,8 +31,7 @@ pub const ManagedNetworkProtocol = extern struct { |
| 31 | 31 | /// Translates an IP multicast address to a hardware (MAC) multicast address. |
| 32 | 32 | /// This function may be unsupported in some MNP implementations. |
| 33 | 33 | pub fn mcastIpToMac(self: *const ManagedNetworkProtocol, ipv6flag: bool, ipaddress: *const anyopaque, mac_address: *MacAddress) Status { |
| 34 | _ = mac_address; | |
| 35 | return self._mcast_ip_to_mac(self, ipv6flag, ipaddress); | |
| 34 | return self._mcast_ip_to_mac(self, ipv6flag, ipaddress, mac_address); | |
| 36 | 35 | } |
| 37 | 36 | |
| 38 | 37 | /// Enables and disables receive filters for multicast address. |
lib/std/os/uefi/protocols/simple_text_input_ex_protocol.zig+2-2| ... | ... | @@ -10,7 +10,7 @@ pub const SimpleTextInputExProtocol = extern struct { |
| 10 | 10 | _read_key_stroke_ex: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *KeyData) callconv(.C) Status), |
| 11 | 11 | wait_for_key_ex: Event, |
| 12 | 12 | _set_state: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *const u8) callconv(.C) Status), |
| 13 | _register_key_notify: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *const KeyData, fn (*const KeyData) callconv(.C) usize, **anyopaque) callconv(.C) Status), | |
| 13 | _register_key_notify: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *const KeyData, std.meta.FnPtr(fn (*const KeyData) callconv(.C) usize), **anyopaque) callconv(.C) Status), | |
| 14 | 14 | _unregister_key_notify: std.meta.FnPtr(fn (*const SimpleTextInputExProtocol, *const anyopaque) callconv(.C) Status), |
| 15 | 15 | |
| 16 | 16 | /// Resets the input device hardware. |
| ... | ... | @@ -29,7 +29,7 @@ pub const SimpleTextInputExProtocol = extern struct { |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /// Register a notification function for a particular keystroke for the input device. |
| 32 | pub fn registerKeyNotify(self: *const SimpleTextInputExProtocol, key_data: *const KeyData, notify: fn (*const KeyData) callconv(.C) usize, handle: **anyopaque) Status { | |
| 32 | pub fn registerKeyNotify(self: *const SimpleTextInputExProtocol, key_data: *const KeyData, notify: std.meta.FnPtr(fn (*const KeyData) callconv(.C) usize), handle: **anyopaque) Status { | |
| 33 | 33 | return self._register_key_notify(self, key_data, notify, handle); |
| 34 | 34 | } |
| 35 | 35 |
lib/std/os/uefi/tables/boot_services.zig+1-1| ... | ... | @@ -191,7 +191,7 @@ pub const BootServices = extern struct { |
| 191 | 191 | pub const tpl_high_level: usize = 31; |
| 192 | 192 | }; |
| 193 | 193 | |
| 194 | pub const EfiEventNotify = fn (event: Event, ctx: *anyopaque) callconv(.C) void; | |
| 194 | pub const EfiEventNotify = std.meta.FnPtr(fn (event: Event, ctx: *anyopaque) callconv(.C) void); | |
| 195 | 195 | |
| 196 | 196 | pub const TimerDelay = enum(u32) { |
| 197 | 197 | TimerCancel, |