summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/shell.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-09 21:39:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-09 21:39:21 +0000
commit6dd411aa14c471b5657e3b53098ee13d772bc626 (patch)
tree738f5c2a3adcfd35f07e8157b74a7546485c348b /cpukit/libmisc/shell/shell.h
parentRegenerate. (diff)
downloadrtems-6dd411aa14c471b5657e3b53098ee13d772bc626.tar.bz2
2007-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell.c, libmisc/shell/shell.h: Much cleanup but much of the focus was on the beginning stages of making the login checker pluggable just like the shell.
Diffstat (limited to 'cpukit/libmisc/shell/shell.h')
-rw-r--r--cpukit/libmisc/shell/shell.h35
1 files changed, 21 insertions, 14 deletions
diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h
index a662697d54..3cce16acb3 100644
--- a/cpukit/libmisc/shell/shell.h
+++ b/cpukit/libmisc/shell/shell.h
@@ -33,12 +33,12 @@ struct shell_cmd_tt ;
typedef struct shell_cmd_tt shell_cmd_t;
struct shell_cmd_tt {
- char * name;
- char * usage;
- char * topic;
- shell_command_t command;
- shell_cmd_t * alias;
- shell_cmd_t * next;
+ char *name;
+ char *usage;
+ char *topic;
+ shell_command_t command;
+ shell_cmd_t *alias;
+ shell_cmd_t *next;
};
uint32_t new_rtems_name(char * rtems_name);
@@ -69,15 +69,22 @@ int shell_scanline(char * line,int size,FILE * in,FILE * out) ;
void cat_file(FILE * out,char *name);
void write_file(char *name,char * content);
-rtems_status_code shell_init(char * task_name ,
- uint32_t task_stacksize,/*0 default*/
- rtems_task_priority task_priority ,
- char * devname ,
- tcflag_t tcflag ,
- int forever );
+rtems_status_code shell_init(
+ char *task_name,
+ uint32_t task_stacksize, /*0 default*/
+ rtems_task_priority task_priority,
+ char *devname,
+ tcflag_t tcflag,
+ int forever
+);
+
+rtems_boolean shell_shell_loop(
+ shell_env_t *shell_env
+);
+
+extern shell_env_t global_shell_env;
+extern shell_env_t *current_shell_env;
-extern shell_env_t global_shell_env,
- * current_shell_env;
/*--------*/
/* cmds.c */
/*--------*/