aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/shell/shell.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-04-16 07:27:28 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-04-16 07:27:28 +0000
commit0aabb7e5adc270fbfd31b331a8e3ee3397a24a6e (patch)
treeb61cbbe3d9f9e2e9063e4035fbb0494d42b46ef7 /os/various/shell/shell.h
parentde50e8fae592a69ea125e5fd9dd5780948cd6ea3 (diff)
downloadChibiOS-0aabb7e5adc270fbfd31b331a8e3ee3397a24a6e.tar.gz
ChibiOS-0aabb7e5adc270fbfd31b331a8e3ee3397a24a6e.tar.bz2
ChibiOS-0aabb7e5adc270fbfd31b331a8e3ee3397a24a6e.zip
More shell enhancements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9285 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various/shell/shell.h')
-rw-r--r--os/various/shell/shell.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/various/shell/shell.h b/os/various/shell/shell.h
index 4620ded8b..b155ec99b 100644
--- a/os/various/shell/shell.h
+++ b/os/various/shell/shell.h
@@ -148,8 +148,10 @@ typedef struct {
const ShellCommand *sc_commands; /**< @brief Shell extra commands
table. */
#if (SHELL_USE_HISTORY == TRUE) || defined(__DOXYGEN__)
- ShellHistory *sc_history; /**< @brief Shell command history
+ char *sc_histbuf; /**< @brief Shell command history
buffer. */
+ const int sc_histsize; /**< @brief Shell history buffer
+ size. */
#endif
#if (SHELL_USE_COMPLETION == TRUE) || defined(__DOXYGEN__)
char **sc_completion; /**< @brief Shell command completion
@@ -207,7 +209,7 @@ extern "C" {
void shellInit(void);
THD_FUNCTION(shellThread, p);
void shellExit(msg_t msg);
- bool shellGetLine(ShellConfig *scfg, char *line, unsigned size);
+ bool shellGetLine(ShellConfig *scfg, char *line, unsigned size, ShellHistory *shp);
#ifdef __cplusplus
}
#endif