summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPierre Aubert <p.aubert@staubli.com>2014-04-24 10:30:07 +0200
committerPantelis Antoniou <panto@antoniou-consulting.com>2014-05-23 11:53:05 +0300
commita5dffa4b67fb0ad635088c9853abf6fcb181ac3c (patch)
tree5fd9cf1fc261a3ad69045731c1ccdfcb0caaa75e /include
parent91fdabc67aebc2468ad362c02449f215e0971c68 (diff)
downloadu-boot-imx-a5dffa4b67fb0ad635088c9853abf6fcb181ac3c.zip
u-boot-imx-a5dffa4b67fb0ad635088c9853abf6fcb181ac3c.tar.gz
u-boot-imx-a5dffa4b67fb0ad635088c9853abf6fcb181ac3c.tar.bz2
Add the function 'confirm_yesno' for interactive
User's confirmation is asked in different commands. This commit adds a function for such confirmation. Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com> Signed-off-by: Pierre Aubert <p.aubert@staubli.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 13e5dc7..232136c 100644
--- a/include/common.h
+++ b/include/common.h
@@ -836,7 +836,7 @@ int ctrlc (void);
int had_ctrlc (void); /* have we had a Control-C since last clear? */
void clear_ctrlc (void); /* clear the Control-C condition */
int disable_ctrlc (int); /* 1 to disable, 0 to enable Control-C detect */
-
+int confirm_yesno(void); /* 1 if input is "y", "Y", "yes" or "YES" */
/*
* STDIO based functions (can always be used)
*/