]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[parseopt] Add parse_timeout()
authorMichael Brown <mcb30@ipxe.org>
Fri, 1 Nov 2013 02:22:12 +0000 (02:22 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 1 Nov 2013 02:26:19 +0000 (02:26 +0000)
commit5e1fa5cd4090f229a40903f13abf328e86271717
tree77a6302aeeb86f6c86fe95fb757a952a4ef7490e
parentb15dbc9cc65e8385a30513554129d7640bc8a0f9
[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>
12 files changed:
src/core/parseopt.c
src/hci/commands/menu_cmd.c
src/hci/commands/ping_cmd.c
src/hci/commands/sync_cmd.c
src/hci/tui/menu_ui.c
src/image/script.c
src/include/ipxe/menu.h
src/include/ipxe/parseopt.h
src/include/usr/pingmgmt.h
src/include/usr/prompt.h
src/usr/pingmgmt.c
src/usr/prompt.c