summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/shell.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-27 12:48:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-27 12:48:41 +0000
commitf3db4ac83a4fa6b82d1671eb348ba3e4084dfde6 (patch)
tree359f38f8d01fa4d9c630e1fec28b236d2c543ed9 /cpukit/libmisc/shell/shell.h
parent2008-08-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-f3db4ac83a4fa6b82d1671eb348ba3e4084dfde6.tar.bz2
2008-08-27 Joel Sherrill <joel.sherrill@OARcorp.com>
* libmisc/Makefile.am, libmisc/shell/shell.c, libmisc/shell/shell.h: Split out rtems_shell_get_prompt() so it can be overridden by the user. * libmisc/shell/shell_getprompt.c: New file.
Diffstat (limited to 'cpukit/libmisc/shell/shell.h')
-rw-r--r--cpukit/libmisc/shell/shell.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h
index 2d3da8312d..904d4e0bd9 100644
--- a/cpukit/libmisc/shell/shell.h
+++ b/cpukit/libmisc/shell/shell.h
@@ -225,6 +225,25 @@ struct rtems_shell_filesystems_tt {
rtems_shell_filesystems_mounter_t mounter;
};
+/**
+ * This method dynamically builds the command line prompt string
+ * and places it in @a prompt.
+ *
+ * @param[in] shell_env is the shell execution environment
+ * @param[in] prompt is a pointer to a string buffer area
+ * @param[in] size is length of the prompt buffer area
+ *
+ * @return This method fills in the memory pointed to by @a prompt.
+ *
+ * @note An application specific implementation can be provided
+ * by the user.
+ */
+void rtems_shell_get_prompt(
+ rtems_shell_env_t *shell_env,
+ char *prompt,
+ size_t size
+);
+
#ifdef __cplusplus
}
#endif