summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2011-06-02 04:40:52 +0000
committerbernard.xiong <[email protected]>2011-06-02 04:40:52 +0000
commitc2276d1719f96b0fc02c146412e5a02b55efeef4 (patch)
tree219c407568a514f5ec43108c06f30f764c6cce2f
parent459e51fb4648ee24d4d5dffd66f684e3883ff2b8 (diff)
Add finsh_get_prompt function declaration.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1444 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--components/finsh/shell.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/components/finsh/shell.h b/components/finsh/shell.h
index 0b39369d22..83e74972f8 100644
--- a/components/finsh/shell.h
+++ b/components/finsh/shell.h
@@ -1,3 +1,17 @@
+/*
+ * File : shell.h
+ * This file is part of RT-Thread RTOS
+ * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rt-thread.org/license/LICENSE
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2011-06-02 Bernard Add finsh_get_prompt function declaration
+ */
+
#ifndef __SHELL_H__
#define __SHELL_H__
@@ -15,6 +29,7 @@
#define FINSH_OPTION_ECHO 0x01
#if defined(RT_USING_DFS) && defined(DFS_USING_WORKDIR)
#define FINSH_PROMPT finsh_get_prompt()
+const char* finsh_get_prompt(void);
#else
#define FINSH_PROMPT "finsh>>"
#endif