From 4e5299ffc4753255b53ec542050761d07ae0f813 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 10 Dec 2007 23:14:35 +0000 Subject: 2007-12-10 Joel Sherrill * ChangeLog, preinstall.am, libmisc/Makefile.am, libmisc/shell/cmds.c, libmisc/shell/shell.c, libmisc/shell/shell.h: Split shell commands into multiple files and add initial stages of command configuration. This seems to work but the monitor commands need to be integrated this way and the ability to configure user commands needs to be tested. * libmisc/shell/cat_file.c, libmisc/shell/cmd_alias.c, libmisc/shell/cmd_cat.c, libmisc/shell/cmd_cd.c, libmisc/shell/cmd_chdir.c, libmisc/shell/cmd_chmod.c, libmisc/shell/cmd_chroot.c, libmisc/shell/cmd_date.c, libmisc/shell/cmd_dir.c, libmisc/shell/cmd_exit.c, libmisc/shell/cmd_help.c, libmisc/shell/cmd_id.c, libmisc/shell/cmd_logoff.c, libmisc/shell/cmd_ls.c, libmisc/shell/cmd_mallocdump.c, libmisc/shell/cmd_mdump.c, libmisc/shell/cmd_medit.c, libmisc/shell/cmd_mfill.c, libmisc/shell/cmd_mkdir.c, libmisc/shell/cmd_mmove.c, libmisc/shell/cmd_mwdump.c, libmisc/shell/cmd_pwd.c, libmisc/shell/cmd_rm.c, libmisc/shell/cmd_rmdir.c, libmisc/shell/cmd_tty.c, libmisc/shell/cmd_umask.c, libmisc/shell/cmd_whoami.c, libmisc/shell/internal.h, libmisc/shell/shellconfig.c, libmisc/shell/shellconfig.h, libmisc/shell/str2int.c: New files. --- cpukit/libmisc/shell/internal.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cpukit/libmisc/shell/internal.h (limited to 'cpukit/libmisc/shell/internal.h') diff --git a/cpukit/libmisc/shell/internal.h b/cpukit/libmisc/shell/internal.h new file mode 100644 index 0000000000..706bfc42af --- /dev/null +++ b/cpukit/libmisc/shell/internal.h @@ -0,0 +1,32 @@ +/* + * Shell Internal Information + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#ifndef _RTEMS_SHELL_INTERNAL_h +#define _RTEMS_SHELL_INTERNAL_h + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +struct shell_topic_tt; +typedef struct shell_topic_tt shell_topic_t; + +struct shell_topic_tt { + char *topic; + shell_topic_t *next; +}; + + +extern shell_cmd_t * shell_first_cmd; +extern shell_topic_t * shell_first_topic; + +shell_topic_t * shell_lookup_topic(char * topic); + +#endif -- cgit v1.2.3