comparison simtool/dispatch.c @ 90:53e2c00566af

fc-simtool: readbin command implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 24 Jan 2021 18:18:04 +0000
parents 91486a77643e
children 226b231d00f3
comparison
equal deleted inserted replaced
89:fb75855a74a9 90:53e2c00566af
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_readbin();
15 extern int cmd_select(); 16 extern int cmd_select();
16 17
17 extern int display_sim_resp_in_hex(); 18 extern int display_sim_resp_in_hex();
18 19
19 cmd_exit() 20 cmd_exit()
29 int maxargs; 30 int maxargs;
30 int (*func)(); 31 int (*func)();
31 } cmdtab[] = { 32 } cmdtab[] = {
32 {"exit", 0, 0, cmd_exit}, 33 {"exit", 0, 0, cmd_exit},
33 {"quit", 0, 0, cmd_exit}, 34 {"quit", 0, 0, cmd_exit},
35 {"readbin", 2, 2, cmd_readbin},
34 {"select", 1, 1, cmd_select}, 36 {"select", 1, 1, cmd_select},
35 {"sim-resp", 0, 0, display_sim_resp_in_hex}, 37 {"sim-resp", 0, 0, display_sim_resp_in_hex},
36 {0, 0, 0, 0} 38 {0, 0, 0, 0}
37 }; 39 };
38 40