summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-04-10 20:01:27 -0600
committerTom Rini <trini@ti.com>2014-05-29 17:45:31 -0400
commite1bf824dfd6881f6f633238c275bfa1e5d83c433 (patch)
tree4d43bd0b4d0fdae2f737c2ad9670005300dea87f /include
parent6493ccc7cf2357081267effffa7d345e50d68d00 (diff)
downloadu-boot-imx-e1bf824dfd6881f6f633238c275bfa1e5d83c433.zip
u-boot-imx-e1bf824dfd6881f6f633238c275bfa1e5d83c433.tar.gz
u-boot-imx-e1bf824dfd6881f6f633238c275bfa1e5d83c433.tar.bz2
Add cli_ prefix to readline functions
This makes it clear where the code resides. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/cli.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/cli.h b/include/cli.h
index b04539f..61f8aee 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -53,7 +53,7 @@ int cli_simple_run_command_list(char *cmd, int flag);
* @prompt: Prompt to display
* @return command line length excluding terminator, or -ve on error
*/
-int readline(const char *const prompt);
+int cli_readline(const char *const prompt);
/**
* readline_into_buffer() - read a line into a buffer
@@ -78,7 +78,8 @@ int readline(const char *const prompt);
* parameter), then -2 is returned. If a break is detected (Ctrl-C) then
* -1 is returned.
*/
-int readline_into_buffer(const char *const prompt, char *buffer, int timeout);
+int cli_readline_into_buffer(const char *const prompt, char *buffer,
+ int timeout);
/**
* parse_line() - split a command line down into separate arguments
@@ -97,7 +98,7 @@ int readline_into_buffer(const char *const prompt, char *buffer, int timeout);
* @args: Array to hold arguments
* @return number of arguments
*/
-int parse_line(char *line, char *argv[]);
+int cli_simple_parse_line(char *line, char *argv[]);
/** bootretry_dont_retry() - Indicate that we should not retry the boot */
void bootretry_dont_retry(void);