summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeo C2016-06-17 15:42:31 +0200
committerLeo C2016-06-17 20:52:19 +0200
commit4912667be3154f62d3206a47b6e748b0b6281ae3 (patch)
tree53f3aeb92f6d102947a0a3ea7bb8013459ae09c1 /include
parente347ae0762d0179f0fb8354f85351e7ddac97b95 (diff)
downloadz180-stamp-4912667be3154f62d3206a47b6e748b0b6281ae3.zip
Code clean up
Diffstat (limited to 'include')
-rw-r--r--include/cli_readline.h31
1 files changed, 5 insertions, 26 deletions
diff --git a/include/cli_readline.h b/include/cli_readline.h
index 0ce28a5..f326106 100644
--- a/include/cli_readline.h
+++ b/include/cli_readline.h
@@ -18,38 +18,17 @@ extern char console_buffer[]; /* console I/O buffer */
/**
* cli_readline() - read a line into the console_buffer
*
- * This is a convenience function which calls cli_readline_into_buffer().
- *
- * @prompt: Prompt to display
- * @enable_history: Use history buffer if true
- * @return command line length excluding terminator, or -ve on error
- */
-int cli_readline(const FLASH char *const prompt, bool enable_history);
-
-/**
- * readline_into_buffer() - read a line into a buffer
- *
- * Display the prompt, then read a command line into @buffer. The
+ * Display the prompt, then read a command line into console_buffer. The
* maximum line length is CONFIG_SYS_CBSIZE including a \0 terminator, which
* will always be added.
*
* The command is echoed as it is typed. Command editing is supported.
* Tab auto-complete is supported if CONFIG_AUTO_COMPLETE is defined.
- * If CONFIG_BOOT_RETRY_TIME is defined, then a timeout will be applied.
- *
- * If CONFIG_BOOT_RETRY_TIME is defined and retry_time >= 0,
- * time out when time goes past endtime (timebase time in ticks).
*
- * @prompt: Prompt to display
- * @buffer: Place to put the line that is entered
- * @timeout: Timeout in milliseconds, 0 if none
- * @return command line length excluding terminator, or -ve on error: of the
- * timeout is exceeded (either CONFIG_BOOT_RETRY_TIME or the timeout
- * parameter), then -2 is returned. If a break is detected (Ctrl-C) then
- * -1 is returned.
+ * @prompt: Prompt to display
+ * @enable_history: Use history buffer if true
+ * @return command line length excluding terminator, or -ve on error
*/
-//int cli_readline_into_buffer(const char *const prompt, char *buffer,
-// int timeout, bool enable_history);
-
+int cli_readline(const FLASH char *const prompt, bool enable_history);
#endif /* CLI_READLINE_H */