source: rtems-schedsim/schedsim/shell/shared/include/shell.h @ abb18dc

base initial
Last change on this file since abb18dc was abb18dc, checked in by Joel Sherrill <joel.sherrill@…>, on 04/25/11 at 15:53:10

Initial import.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  BASED UPON SOURCE IN RTEMS, MODIFIED FOR SIMULATOR
3 *
4 *  COPYRIGHT (c) 1989-2010.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14
15#ifndef __SHELL_h
16#define __SHELL_h
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22typedef int (*rtems_shell_command_t)(int argc, char **argv);
23
24struct rtems_shell_cmd_tt;
25typedef struct rtems_shell_cmd_tt rtems_shell_cmd_t;
26
27struct rtems_shell_cmd_tt {
28  const char            *name;
29  const char            *usage;
30  const char            *topic;
31  rtems_shell_command_t  command;
32  rtems_shell_cmd_t     *alias;
33  rtems_shell_cmd_t     *next;
34};
35
36typedef struct {
37  const char *name;
38  const char *alias;
39} rtems_shell_alias_t;
40
41void rtems_shell_initialize_command_set(void);
42
43rtems_shell_cmd_t * rtems_shell_lookup_cmd(const char *cmd);
44
45rtems_shell_cmd_t * rtems_shell_alias_cmd(
46  const char *cmd,
47  const char *alias
48);
49
50int rtems_shell_make_args(
51  char  *commandLine,
52  int   *argc_p,
53  char **argv_p,
54  int    max_args
55);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif
Note: See TracBrowser for help on using the repository browser.