From c2276d1719f96b0fc02c146412e5a02b55efeef4 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Thu, 2 Jun 2011 04:40:52 +0000 Subject: [PATCH] Add finsh_get_prompt function declaration. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1444 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/finsh/shell.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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