FreeCalypso > hg > freecalypso-sw
comparison rvinterf/asyncshell/oneshot.c @ 1014:0511507bf6e7
fc-shell: tch-dl control command implemented
| author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
|---|---|
| date | Sun, 20 Mar 2016 22:52:25 +0000 |
| parents | 93f4fc26b204 |
| children |
comparison
equal
deleted
inserted
replaced
| 1013:6eee1e547778 | 1014:0511507bf6e7 |
|---|---|
| 9 #include "limits.h" | 9 #include "limits.h" |
| 10 | 10 |
| 11 extern int cmd_poweroff(); | 11 extern int cmd_poweroff(); |
| 12 extern int cmd_send_oneshot(); | 12 extern int cmd_send_oneshot(); |
| 13 extern int cmd_sp_oneshot(); | 13 extern int cmd_sp_oneshot(); |
| 14 extern int cmd_tchdl_oneshot(); | |
| 14 extern int cmd_tgtreset(); | 15 extern int cmd_tgtreset(); |
| 15 | 16 |
| 16 static struct cmdtab { | 17 static struct cmdtab { |
| 17 char *cmd; | 18 char *cmd; |
| 18 int minargs; | 19 int minargs; |
| 20 int (*func)(); | 21 int (*func)(); |
| 21 } cmdtab[] = { | 22 } cmdtab[] = { |
| 22 {"poweroff", 0, 0, cmd_poweroff}, | 23 {"poweroff", 0, 0, cmd_poweroff}, |
| 23 {"send", 1, MAX_PKT_TO_TARGET, cmd_send_oneshot}, | 24 {"send", 1, MAX_PKT_TO_TARGET, cmd_send_oneshot}, |
| 24 {"sp", 2, 2, cmd_sp_oneshot}, | 25 {"sp", 2, 2, cmd_sp_oneshot}, |
| 26 {"tch-dl", 1, 1, cmd_tchdl_oneshot}, | |
| 25 {"tgtreset", 0, 0, cmd_tgtreset}, | 27 {"tgtreset", 0, 0, cmd_tgtreset}, |
| 26 {0, 0, 0, 0} | 28 {0, 0, 0, 0} |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 oneshot_command(argc, argv) | 31 oneshot_command(argc, argv) |
