comparison simtool/dispatch.c @ 104:a60645b75a57

fc-simtool: phonebook dump implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 25 Jan 2021 05:55:40 +0000
parents 90eff13a72fd
children 6f80cfdc7e05
comparison
equal deleted inserted replaced
103:90eff13a72fd 104:a60645b75a57
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_imsi();
17 extern int cmd_pb_dump();
17 extern int cmd_readbin(); 18 extern int cmd_readbin();
18 extern int cmd_readef(); 19 extern int cmd_readef();
19 extern int cmd_readrec(); 20 extern int cmd_readrec();
20 extern int cmd_restore_file(); 21 extern int cmd_restore_file();
21 extern int cmd_savebin(); 22 extern int cmd_savebin();
41 int (*func)(); 42 int (*func)();
42 } cmdtab[] = { 43 } cmdtab[] = {
43 {"exit", 0, 0, cmd_exit}, 44 {"exit", 0, 0, cmd_exit},
44 {"iccid", 0, 0, cmd_iccid}, 45 {"iccid", 0, 0, cmd_iccid},
45 {"imsi", 0, 0, cmd_imsi}, 46 {"imsi", 0, 0, cmd_imsi},
47 {"pb-dump", 1, 2, cmd_pb_dump},
46 {"quit", 0, 0, cmd_exit}, 48 {"quit", 0, 0, cmd_exit},
47 {"readbin", 2, 2, cmd_readbin}, 49 {"readbin", 2, 2, cmd_readbin},
48 {"readef", 1, 1, cmd_readef}, 50 {"readef", 1, 1, cmd_readef},
49 {"readrec", 1, 2, cmd_readrec}, 51 {"readrec", 1, 2, cmd_readrec},
50 {"restore-file", 2, 2, cmd_restore_file}, 52 {"restore-file", 2, 2, cmd_restore_file},