rt-thread/components/finsh/msh.h

24 lines
508 B
C
Raw Normal View History

2013-03-30 16:14:38 +08:00
/*
2021-03-08 18:19:04 +08:00
* Copyright (c) 2006-2021, RT-Thread Development Team
2013-03-30 16:14:38 +08:00
*
2018-10-14 19:28:18 +08:00
* SPDX-License-Identifier: Apache-2.0
2013-03-30 16:14:38 +08:00
*
* Change Logs:
* Date Author Notes
* 2013-03-30 Bernard the first verion for FinSH
*/
#ifndef __M_SHELL__
#define __M_SHELL__
#include <rtthread.h>
rt_bool_t msh_is_used(void);
2015-10-11 15:38:08 +08:00
int msh_exec(char *cmd, rt_size_t length);
2013-03-30 16:14:38 +08:00
void msh_auto_complete(char *prefix);
2015-10-11 15:38:08 +08:00
int msh_exec_module(const char *cmd_line, int size);
int msh_exec_script(const char *cmd_line, int size);
2013-03-30 16:14:38 +08:00
#endif