Changeset 622:3ad2e3151814

Show
Ignore:
Timestamp:
06/22/08 20:48:57 (7 months ago)
Author:
David Anderson <dave@…>
Branch:
default
Message:

Move the rcmd_command_def structure from rcmd.h to rcmd.c.

Location:
nxos/base/lib/rcmd
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • nxos/base/lib/rcmd/rcmd.c

    r619 r622  
    2525static rcmd_err_t nx_rcmd_wait(char *line); 
    2626static rcmd_err_t nx_rcmd_nop(char *line); 
     27 
     28/* Command definition. */ 
     29typedef struct { 
     30  char *name; /* Command name. */ 
     31  int argc; /* Number of arguments expected by this command. */ 
     32 
     33  /* Command actuator. */ 
     34  rcmd_err_t (* actuator)(char*); 
     35} rcmd_command_def; 
    2736 
    2837static rcmd_command_def rcmd_commands[] = { 
  • nxos/base/lib/rcmd/rcmd.h

    r598 r622  
    6464} rcmd_err_t; 
    6565 
    66 /** Command definition. */ 
    67 typedef struct { 
    68   char *name;  /**< Command name. */ 
    69   int argc;    /**< Number of arguments expected by this command. */ 
    70  
    71   /** Command actuator. */ 
    72   rcmd_err_t (* actuator)(char*); 
    73 } rcmd_command_def; 
    74  
    7566/** Execute the given line. 
    7667 *