summaryrefslogtreecommitdiffstats
path: root/include/console_countdown.h
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2017-03-10 07:05:22 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-10 08:43:27 +0100
commite3dda8553eea825e11df4aef80407c66eb2c0df8 (patch)
tree964e3909df76fbf76802e09124740362fcd7d58d /include/console_countdown.h
parent3d92ea473884cddad18ab6f0554492f4468bc25f (diff)
downloadbarebox-e3dda8553eea825e11df4aef80407c66eb2c0df8.tar.gz
barebox-e3dda8553eea825e11df4aef80407c66eb2c0df8.tar.xz
console_countdown: add possibility to abort countdown by external commands
This patch makes it possible to abort a console countdown by an external command, for example when fastboot is used. This requires additional modifications in the external commands, a call to "console_countdown_abort()" has to be inserted. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> 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, 2 insertions, 0 deletions
diff --git a/include/console_countdown.h b/include/console_countdown.h
index cb46964bc4..c6c2d5c00e 100644
--- a/include/console_countdown.h
+++ b/include/console_countdown.h
@@ -5,7 +5,9 @@
#define CONSOLE_COUNTDOWN_ANYKEY (1 << 1)
#define CONSOLE_COUNTDOWN_RETURN (1 << 3)
#define CONSOLE_COUNTDOWN_CTRLC (1 << 4)
+#define CONSOLE_COUNTDOWN_EXTERN (1 << 5)
int console_countdown(int timeout_s, unsigned flags, char *out_key);
+void console_countdown_abort(void);
#endif /* __CONSOLE_COUNTDOWN_H */