authorgravatar for yuki@uefi.jpHeppokoyuki <yuki@uefi.jp> 2020-03-12 00:16:45+09:00
committergravatar for yuki@uefi.jpHeppokoyuki <yuki@uefi.jp> 2020-03-12 00:24:00+09:00
log58941927c426f61a6680348e4380f9f4eed3e8a8
tree2a7303ff3e13589f3bd5f23d1ff341ed97df41a5
parent02ba1d8fe14a034e5873a56b4aef9c2801dc52e9

refactor


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

lib/std/os/uefi/protocols/simple_text_input_protocol.zig+3-2
...@@ -1,11 +1,12 @@...@@ -1,11 +1,12 @@
1const uefi = @import("std").os.uefi;1const uefi = @import("std").os.uefi;
2const Event = uefi.Event;2const Event = uefi.Event;
3const Guid = uefi.Guid;3const Guid = uefi.Guid;
4const InputKey = uefi.protocols.InputKey;
45
5/// Character input devices, e.g. Keyboard6/// Character input devices, e.g. Keyboard
6pub const SimpleTextInputProtocol = extern struct {7pub const SimpleTextInputProtocol = extern struct {
7 _reset: extern fn (*const SimpleTextInputProtocol, bool) usize,8 _reset: extern fn (*const SimpleTextInputProtocol, bool) usize,
8 _read_key_stroke: extern fn (*const SimpleTextInputProtocol, *uefi.protocols.InputKey) usize,9 _read_key_stroke: extern fn (*const SimpleTextInputProtocol, *InputKey) usize,
9 wait_for_key: Event,10 wait_for_key: Event,
1011
11 /// Resets the input device hardware.12 /// Resets the input device hardware.
...@@ -14,7 +15,7 @@ pub const SimpleTextInputProtocol = extern struct {...@@ -14,7 +15,7 @@ pub const SimpleTextInputProtocol = extern struct {
14 }15 }
1516
16 /// Reads the next keystroke from the input device.17 /// Reads the next keystroke from the input device.
17 pub fn readKeyStroke(self: *const SimpleTextInputProtocol, input_key: *uefi.protocols.InputKey) usize {18 pub fn readKeyStroke(self: *const SimpleTextInputProtocol, input_key: *InputKey) usize {
18 return self._read_key_stroke(self, input_key);19 return self._read_key_stroke(self, input_key);
19 }20 }
2021