Changeset 622:3ad2e3151814
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r619
|
r622
|
|
| 25 | 25 | static rcmd_err_t nx_rcmd_wait(char *line); |
| 26 | 26 | static rcmd_err_t nx_rcmd_nop(char *line); |
| | 27 | |
| | 28 | /* Command definition. */ |
| | 29 | typedef 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; |
| 27 | 36 | |
| 28 | 37 | static rcmd_command_def rcmd_commands[] = { |
-
|
r598
|
r622
|
|
| 64 | 64 | } rcmd_err_t; |
| 65 | 65 | |
| 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 | | |
| 75 | 66 | /** Execute the given line. |
| 76 | 67 | * |