From e7595fe88d8c32354cd61055cbc9f2e7b3f91ff8 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 19 Feb 2025 13:12:29 +0000 Subject: [menu] Allow a post-activity timeout to be defined Allow the "--retimeout" option to be used to specify a timeout value that will be (re)applied after each keypress activity. This allows script authors to ensure that a single (potentially accidental) keypress will not pause the boot process indefinitely. Signed-off-by: Michael Brown --- src/include/ipxe/dynui.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/ipxe/dynui.h') diff --git a/src/include/ipxe/dynui.h b/src/include/ipxe/dynui.h index 67eb8b8f8..f47f5cb36 100644 --- a/src/include/ipxe/dynui.h +++ b/src/include/ipxe/dynui.h @@ -60,7 +60,8 @@ extern struct dynamic_item * dynui_item ( struct dynamic_ui *dynui, extern struct dynamic_item * dynui_shortcut ( struct dynamic_ui *dynui, int key ); extern int show_menu ( struct dynamic_ui *dynui, unsigned long timeout, - const char *select, struct dynamic_item **selected ); + unsigned long retimeout, const char *select, + struct dynamic_item **selected ); extern int show_form ( struct dynamic_ui *dynui ); #endif /* _IPXE_DYNUI_H */ -- cgit