FreeCalypso > hg > freecalypso-hwlab
comparison simtool/dispatch.c @ 96:a5dfab380a90
fc-simtool: iccid high-level read command implemented
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sun, 24 Jan 2021 22:11:34 +0000 |
| parents | 5f826e428641 |
| children | 597c4e87a1f4 |
comparison
equal
deleted
inserted
replaced
| 95:5f826e428641 | 96:a5dfab380a90 |
|---|---|
| 10 #include <stdlib.h> | 10 #include <stdlib.h> |
| 11 #include <pcsclite.h> | 11 #include <pcsclite.h> |
| 12 #include <winscard.h> | 12 #include <winscard.h> |
| 13 #include "globals.h" | 13 #include "globals.h" |
| 14 | 14 |
| 15 extern int cmd_iccid(); | |
| 15 extern int cmd_readbin(); | 16 extern int cmd_readbin(); |
| 16 extern int cmd_readef(); | 17 extern int cmd_readef(); |
| 17 extern int cmd_readrec(); | 18 extern int cmd_readrec(); |
| 18 extern int cmd_select(); | 19 extern int cmd_select(); |
| 19 | 20 |
| 31 int minargs; | 32 int minargs; |
| 32 int maxargs; | 33 int maxargs; |
| 33 int (*func)(); | 34 int (*func)(); |
| 34 } cmdtab[] = { | 35 } cmdtab[] = { |
| 35 {"exit", 0, 0, cmd_exit}, | 36 {"exit", 0, 0, cmd_exit}, |
| 37 {"iccid", 0, 0, cmd_iccid}, | |
| 36 {"quit", 0, 0, cmd_exit}, | 38 {"quit", 0, 0, cmd_exit}, |
| 37 {"readbin", 2, 2, cmd_readbin}, | 39 {"readbin", 2, 2, cmd_readbin}, |
| 38 {"readef", 1, 1, cmd_readef}, | 40 {"readef", 1, 1, cmd_readef}, |
| 39 {"readrec", 1, 2, cmd_readrec}, | 41 {"readrec", 1, 2, cmd_readrec}, |
| 40 {"select", 1, 1, cmd_select}, | 42 {"select", 1, 1, cmd_select}, |
