Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › os › uefi › protocol › simple_text_input_ex › SimpleTextInputEx › registerKeyNotify Public Function registerKeyNotify Doc Source Public Function std.os.uefi.protocol.simple_text_input_ex.SimpleTextInputEx.registerKeyNotify
pub fn registerKeyNotify (
self : *SimpleTextInputEx ,
key_data : *const Key ,
notify : *const fn (*const Key ) callconv (cc ) Status ,
) RegisterKeyNotifyError !uefi .Handle Params File os/uefi/protocol/simple_text_input_ex.zig: 62
62
63
64
65
66
67
68
69
70
71
72
73 pub fn registerKeyNotify (
self : *SimpleTextInputEx ,
key_data : *const Key ,
notify : *const fn (*const Key ) callconv (cc ) Status ,
) RegisterKeyNotifyError !uefi .Handle {
var handle : uefi .Handle = undefined ;
switch (self ._register_key_notify (self , key_data , notify , &handle )) {
.success => return handle ,
.out_of_resources => return error .OutOfResources ,
else => |status | return uefi .unexpectedStatus (status ),
}
}
Register a notification function for a particular keystroke for the input device.