]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/cli_readline.h
Version 0.6.7.1
[z180-stamp.git] / include / cli_readline.h
index 44715687400c4877272f32bab529816b6c74f64a..0ce28a5532e8be3a7baa8fda9ea474d5fac117e2 100644 (file)
@@ -1,15 +1,18 @@
 /*
- * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ * (C) Copyright 2014-2016 Leo C. <erbl259-lmu@yahoo.de>
  *
  * (C) Copyright 2014 Google, Inc
  * Simon Glass <sjg@chromium.org>
  *
- * SPDX-License-Identifier:    GPL-2.0+
+ * SPDX-License-Identifier:    GPL-2.0
  */
 
 #ifndef CLI_READLINE_H
 #define CLI_READLINE_H
 
+#include "common.h"
+#include <stdbool.h>
+
 extern char console_buffer[];  /* console I/O buffer   */
 
 /**
@@ -18,9 +21,10 @@ extern char console_buffer[];        /* console I/O 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);
+int cli_readline(const FLASH char *const prompt, bool enable_history);
 
 /**
  * readline_into_buffer() - read a line into a buffer
@@ -44,7 +48,8 @@ int cli_readline(const FLASH char *const prompt);
  * parameter), then -2 is returned. If a break is detected (Ctrl-C) then
  * -1 is returned.
  */
-//int cli_readline_into_buffer(const char *const prompt, char *buffer, int timeout);
+//int cli_readline_into_buffer(const char *const prompt, char *buffer,
+//                     int timeout, bool enable_history);
 
 
 #endif /* CLI_READLINE_H */