aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/menu.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2013-11-01 02:22:12 +0000
committerMichael Brown <mcb30@ipxe.org>2013-11-01 02:26:19 +0000
commit5e1fa5cd4090f229a40903f13abf328e86271717 (patch)
tree77a6302aeeb86f6c86fe95fb757a952a4ef7490e /src/include/ipxe/menu.h
parentb15dbc9cc65e8385a30513554129d7640bc8a0f9 (diff)
downloadipxe-5e1fa5cd4090f229a40903f13abf328e86271717.zip
ipxe-5e1fa5cd4090f229a40903f13abf328e86271717.tar.gz
ipxe-5e1fa5cd4090f229a40903f13abf328e86271717.tar.bz2
[parseopt] Add parse_timeout()
Parsing a timeout value (specified in milliseconds) into an internal timeout value measured in timer ticks is a common operation. Provide a parse_timeout() value to carry out this conversion automatically. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/menu.h')
-rw-r--r--src/include/ipxe/menu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/menu.h b/src/include/ipxe/menu.h
index 993b027..f2b3cac 100644
--- a/src/include/ipxe/menu.h
+++ b/src/include/ipxe/menu.h
@@ -43,7 +43,7 @@ extern struct menu_item * add_menu_item ( struct menu *menu, const char *label,
int is_default );
extern void destroy_menu ( struct menu *menu );
extern struct menu * find_menu ( const char *name );
-extern int show_menu ( struct menu *menu, unsigned int timeout_ms,
+extern int show_menu ( struct menu *menu, unsigned long timeout,
const char *select, struct menu_item **selected );
#endif /* _IPXE_MENU_H */