comparison uicc/dispatch.c @ 145:14dee03e9675

fc-uicc-tool: low-level write commands ported over
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 06 Feb 2021 02:17:51 +0000
parents 429a8f80426e
children ce2a880ab704
comparison
equal deleted inserted replaced
144:429a8f80426e 145:14dee03e9675
18 extern int cmd_select(); 18 extern int cmd_select();
19 extern int cmd_select_aid(); 19 extern int cmd_select_aid();
20 extern int cmd_select_isim(); 20 extern int cmd_select_isim();
21 extern int cmd_select_usim(); 21 extern int cmd_select_usim();
22 extern int cmd_telecom_sum(); 22 extern int cmd_telecom_sum();
23 extern int cmd_update_bin();
24 extern int cmd_update_bin_imm();
25 extern int cmd_update_rec();
23 26
24 extern int display_sim_resp_in_hex(); 27 extern int display_sim_resp_in_hex();
25 extern int good_exit(); 28 extern int good_exit();
26 29
27 static struct cmdtab { 30 static struct cmdtab {
43 {"select-aid", 1, 1, cmd_select_aid}, 46 {"select-aid", 1, 1, cmd_select_aid},
44 {"select-isim", 0, 0, cmd_select_isim}, 47 {"select-isim", 0, 0, cmd_select_isim},
45 {"select-usim", 0, 0, cmd_select_usim}, 48 {"select-usim", 0, 0, cmd_select_usim},
46 {"sim-resp", 0, 0, display_sim_resp_in_hex}, 49 {"sim-resp", 0, 0, display_sim_resp_in_hex},
47 {"telecom-sum", 0, 0, cmd_telecom_sum}, 50 {"telecom-sum", 0, 0, cmd_telecom_sum},
51 {"update-bin", 2, 2, cmd_update_bin},
52 {"update-bin-imm", 2, 2, cmd_update_bin_imm},
53 {"update-rec", 2, 2, cmd_update_rec},
48 {0, 0, 0, 0} 54 {0, 0, 0, 0}
49 }; 55 };
50 56
51 simtool_dispatch_cmd(cmd, is_script) 57 simtool_dispatch_cmd(cmd, is_script)
52 char *cmd; 58 char *cmd;