]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
efi: Correct function prototype for register_key_notify() method of grub_efi_simple_t...
authorLi Gen <ligenlive@gmail.com>
Thu, 25 Aug 2022 05:12:17 +0000 (00:12 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 4 Oct 2022 13:30:55 +0000 (15:30 +0200)
The register_key_notify() method should have an output parameter which is
a pointer to the unique handle assigned to the registered notification.

Signed-off-by: Li Gen <ligenlive@gmail.com>
Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/efi/api.h

index 1ef4046225cba2f35856bd964dc5f31a6a78df4d..7325d3c9f2f5889a6db915a1997b511d3fc47b93 100644 (file)
@@ -1442,7 +1442,8 @@ struct grub_efi_simple_text_input_ex_interface
        grub_efi_status_t
        (*register_key_notify) (struct grub_efi_simple_text_input_ex_interface *this,
                                grub_efi_key_data_t *key_data,
-                               grub_efi_key_notify_function_t key_notification_function);
+                               grub_efi_key_notify_function_t key_notification_function,
+                               void **notify_handle);
 
        grub_efi_status_t
        (*unregister_key_notify) (struct grub_efi_simple_text_input_ex_interface *this,