FreeCalypso > hg > freecalypso-hwlab
comparison uicc/dispatch.c @ 134:69628bcfec17
fc-uicc-tool: iccid command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 04 Feb 2021 02:28:52 +0000 |
parents | f3bdefbeae38 |
children | 51d6aaa43a7b |
comparison
equal
deleted
inserted
replaced
133:f3bdefbeae38 | 134:69628bcfec17 |
---|---|
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_exec(); | 11 extern int cmd_exec(); |
12 extern int cmd_iccid(); | |
12 extern int cmd_readbin(); | 13 extern int cmd_readbin(); |
13 extern int cmd_readrec(); | 14 extern int cmd_readrec(); |
14 extern int cmd_select(); | 15 extern int cmd_select(); |
15 | 16 |
16 extern int display_sim_resp_in_hex(); | 17 extern int display_sim_resp_in_hex(); |
22 int maxargs; | 23 int maxargs; |
23 int (*func)(); | 24 int (*func)(); |
24 } cmdtab[] = { | 25 } cmdtab[] = { |
25 {"exec", 1, 1, cmd_exec}, | 26 {"exec", 1, 1, cmd_exec}, |
26 {"exit", 0, 0, good_exit}, | 27 {"exit", 0, 0, good_exit}, |
28 {"iccid", 0, 0, cmd_iccid}, | |
27 {"quit", 0, 0, good_exit}, | 29 {"quit", 0, 0, good_exit}, |
28 {"readbin", 2, 2, cmd_readbin}, | 30 {"readbin", 2, 2, cmd_readbin}, |
29 {"readrec", 2, 2, cmd_readrec}, | 31 {"readrec", 2, 2, cmd_readrec}, |
30 {"select", 1, 1, cmd_select}, | 32 {"select", 1, 1, cmd_select}, |
31 {"sim-resp", 0, 0, display_sim_resp_in_hex}, | 33 {"sim-resp", 0, 0, display_sim_resp_in_hex}, |