diff simtool/dispatch.c @ 107:f1836c8d36cb

hexdump output commands reworked to support redirection
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 19 Feb 2021 06:43:01 +0000
parents dcfec53643c5
children e17940d7ce35
line wrap: on
line diff
--- a/simtool/dispatch.c	Fri Feb 19 06:24:06 2021 +0000
+++ b/simtool/dispatch.c	Fri Feb 19 06:43:01 2021 +0000
@@ -55,6 +55,7 @@
 extern int cmd_savebin();
 extern int cmd_save_sms_bin();
 extern int cmd_select();
+extern int cmd_sim_resp();
 extern int cmd_sms_erase_all();
 extern int cmd_sms_erase_one();
 extern int cmd_sms_erase_range();
@@ -81,7 +82,6 @@
 extern int cmd_write_iccid();
 extern int cmd_write_imsi();
 
-extern int display_sim_resp_in_hex();
 extern int good_exit();
 extern int retrieve_atr();
 
@@ -148,14 +148,14 @@
 	{"plmnsel-write", 2, 2, 0, cmd_plmnsel_write},
 	{"pnn-dump", 0, 0, 0, cmd_pnn_dump},
 	{"quit", 0, 0, 0, good_exit},
-	{"readbin", 2, 2, 0, cmd_readbin},
-	{"readef", 1, 1, 0, cmd_readef},
-	{"readrec", 1, 2, 0, cmd_readrec},
+	{"readbin", 2, 2, 1, cmd_readbin},
+	{"readef", 1, 1, 1, cmd_readef},
+	{"readrec", 1, 2, 1, cmd_readrec},
 	{"restore-file", 2, 2, 0, cmd_restore_file},
 	{"savebin", 2, 2, 0, cmd_savebin},
 	{"save-sms-bin", 1, 1, 0, cmd_save_sms_bin},
 	{"select", 1, 1, 0, cmd_select},
-	{"sim-resp", 0, 0, 0, display_sim_resp_in_hex},
+	{"sim-resp", 0, 0, 1, cmd_sim_resp},
 	{"sms-erase-all", 0, 0, 0, cmd_sms_erase_all},
 	{"sms-erase-one", 1, 1, 0, cmd_sms_erase_one},
 	{"sms-erase-range", 2, 2, 0, cmd_sms_erase_range},