FreeCalypso > hg > freecalypso-hwlab
comparison uicc/dispatch.c @ 137:c331560c15a4
fc-uicc-tool: dir command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 04 Feb 2021 04:27:09 +0000 |
parents | a21d348e01db |
children | baf5bd698764 |
comparison
equal
deleted
inserted
replaced
136:a21d348e01db | 137:c331560c15a4 |
---|---|
6 #include <stdio.h> | 6 #include <stdio.h> |
7 #include <string.h> | 7 #include <string.h> |
8 #include <strings.h> | 8 #include <strings.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
11 extern int cmd_dir(); | |
11 extern int cmd_exec(); | 12 extern int cmd_exec(); |
12 extern int cmd_iccid(); | 13 extern int cmd_iccid(); |
13 extern int cmd_pb_dump(); | 14 extern int cmd_pb_dump(); |
14 extern int cmd_pb_dump_rec(); | 15 extern int cmd_pb_dump_rec(); |
15 extern int cmd_readbin(); | 16 extern int cmd_readbin(); |
24 char *cmd; | 25 char *cmd; |
25 int minargs; | 26 int minargs; |
26 int maxargs; | 27 int maxargs; |
27 int (*func)(); | 28 int (*func)(); |
28 } cmdtab[] = { | 29 } cmdtab[] = { |
30 {"dir", 0, 0, cmd_dir}, | |
29 {"exec", 1, 1, cmd_exec}, | 31 {"exec", 1, 1, cmd_exec}, |
30 {"exit", 0, 0, good_exit}, | 32 {"exit", 0, 0, good_exit}, |
31 {"iccid", 0, 0, cmd_iccid}, | 33 {"iccid", 0, 0, cmd_iccid}, |
32 {"pb-dump", 1, 2, cmd_pb_dump}, | 34 {"pb-dump", 1, 2, cmd_pb_dump}, |
33 {"pb-dump-rec", 2, 3, cmd_pb_dump_rec}, | 35 {"pb-dump-rec", 2, 3, cmd_pb_dump_rec}, |