summaryrefslogtreecommitdiffstats
path: root/include/console_countdown.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-02-25 12:26:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-04-24 12:22:59 +0200
commit5455198d56153b6ca39819c07cf9358ad02883fd (patch)
tree6b885ec7d83a2679cb1238c2cb94e7d8f080b34f /include/console_countdown.h
parentec5f3d3dbbc054cf704a658d2734b67df466926b (diff)
downloadbarebox-5455198d56153b6ca39819c07cf9358ad02883fd.tar.gz
barebox-5455198d56153b6ca39819c07cf9358ad02883fd.tar.xz
console_countdown: Add pattern list
This adds an optional string argument to console_countdown() which can hold a list of keys which also abort the countdown. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/console_countdown.h')
-rw-r--r--include/console_countdown.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/console_countdown.h b/include/console_countdown.h
index c6c2d5c00e..88cadf11ec 100644
--- a/include/console_countdown.h
+++ b/include/console_countdown.h
@@ -7,7 +7,7 @@
#define CONSOLE_COUNTDOWN_CTRLC (1 << 4)
#define CONSOLE_COUNTDOWN_EXTERN (1 << 5)
-int console_countdown(int timeout_s, unsigned flags, char *out_key);
+int console_countdown(int timeout_s, unsigned flags, const char *keys, char *out_key);
void console_countdown_abort(void);
#endif /* __CONSOLE_COUNTDOWN_H */