FreeCalypso > hg > freecalypso-hwlab
comparison simtool/dispatch.c @ 97:597c4e87a1f4
fc-simtool: imsi high-level read command implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 24 Jan 2021 22:16:33 +0000 |
parents | a5dfab380a90 |
children | 66c0cb0e9876 |
comparison
equal
deleted
inserted
replaced
96:a5dfab380a90 | 97:597c4e87a1f4 |
---|---|
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_iccid(); |
16 extern int cmd_imsi(); | |
16 extern int cmd_readbin(); | 17 extern int cmd_readbin(); |
17 extern int cmd_readef(); | 18 extern int cmd_readef(); |
18 extern int cmd_readrec(); | 19 extern int cmd_readrec(); |
19 extern int cmd_select(); | 20 extern int cmd_select(); |
20 | 21 |
33 int maxargs; | 34 int maxargs; |
34 int (*func)(); | 35 int (*func)(); |
35 } cmdtab[] = { | 36 } cmdtab[] = { |
36 {"exit", 0, 0, cmd_exit}, | 37 {"exit", 0, 0, cmd_exit}, |
37 {"iccid", 0, 0, cmd_iccid}, | 38 {"iccid", 0, 0, cmd_iccid}, |
39 {"imsi", 0, 0, cmd_imsi}, | |
38 {"quit", 0, 0, cmd_exit}, | 40 {"quit", 0, 0, cmd_exit}, |
39 {"readbin", 2, 2, cmd_readbin}, | 41 {"readbin", 2, 2, cmd_readbin}, |
40 {"readef", 1, 1, cmd_readef}, | 42 {"readef", 1, 1, cmd_readef}, |
41 {"readrec", 1, 2, cmd_readrec}, | 43 {"readrec", 1, 2, cmd_readrec}, |
42 {"select", 1, 1, cmd_select}, | 44 {"select", 1, 1, cmd_select}, |