FreeCalypso > hg > fc-pcsc-tools
comparison uicc/dispatch.c @ 29:d368051576d0
fc-simtool & fc-uicc-tool: add explicit atr command
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 12 Feb 2021 16:19:11 +0000 |
parents | 1b1468869ccf |
children | 16481db543e8 |
comparison
equal
deleted
inserted
replaced
28:78f93e3c9ebf | 29:d368051576d0 |
---|---|
22 extern int cmd_update_bin_imm(); | 22 extern int cmd_update_bin_imm(); |
23 extern int cmd_update_rec(); | 23 extern int cmd_update_rec(); |
24 | 24 |
25 extern int display_sim_resp_in_hex(); | 25 extern int display_sim_resp_in_hex(); |
26 extern int good_exit(); | 26 extern int good_exit(); |
27 extern int retrieve_atr(); | |
27 | 28 |
28 static struct cmdtab { | 29 static struct cmdtab { |
29 char *cmd; | 30 char *cmd; |
30 int minargs; | 31 int minargs; |
31 int maxargs; | 32 int maxargs; |
32 int (*func)(); | 33 int (*func)(); |
33 } cmdtab[] = { | 34 } cmdtab[] = { |
35 {"atr", 0, 0, retrieve_atr}, | |
34 {"dir", 0, 0, cmd_dir}, | 36 {"dir", 0, 0, cmd_dir}, |
35 {"exec", 1, 1, cmd_exec}, | 37 {"exec", 1, 1, cmd_exec}, |
36 {"exit", 0, 0, good_exit}, | 38 {"exit", 0, 0, good_exit}, |
37 {"iccid", 0, 0, cmd_iccid}, | 39 {"iccid", 0, 0, cmd_iccid}, |
38 {"quit", 0, 0, good_exit}, | 40 {"quit", 0, 0, good_exit}, |