FreeCalypso > hg > freecalypso-hwlab
comparison uicc/dispatch.c @ 136:a21d348e01db
fc-uicc-tool: pb-dump command ported over
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 04 Feb 2021 03:40:55 +0000 |
parents | 51d6aaa43a7b |
children | c331560c15a4 |
comparison
equal
deleted
inserted
replaced
135:51d6aaa43a7b | 136:a21d348e01db |
---|---|
8 #include <strings.h> | 8 #include <strings.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 | 10 |
11 extern int cmd_exec(); | 11 extern int cmd_exec(); |
12 extern int cmd_iccid(); | 12 extern int cmd_iccid(); |
13 extern int cmd_pb_dump(); | |
14 extern int cmd_pb_dump_rec(); | |
13 extern int cmd_readbin(); | 15 extern int cmd_readbin(); |
14 extern int cmd_readrec(); | 16 extern int cmd_readrec(); |
15 extern int cmd_select(); | 17 extern int cmd_select(); |
16 extern int cmd_telecom_sum(); | 18 extern int cmd_telecom_sum(); |
17 | 19 |
25 int (*func)(); | 27 int (*func)(); |
26 } cmdtab[] = { | 28 } cmdtab[] = { |
27 {"exec", 1, 1, cmd_exec}, | 29 {"exec", 1, 1, cmd_exec}, |
28 {"exit", 0, 0, good_exit}, | 30 {"exit", 0, 0, good_exit}, |
29 {"iccid", 0, 0, cmd_iccid}, | 31 {"iccid", 0, 0, cmd_iccid}, |
32 {"pb-dump", 1, 2, cmd_pb_dump}, | |
33 {"pb-dump-rec", 2, 3, cmd_pb_dump_rec}, | |
30 {"quit", 0, 0, good_exit}, | 34 {"quit", 0, 0, good_exit}, |
31 {"readbin", 2, 2, cmd_readbin}, | 35 {"readbin", 2, 2, cmd_readbin}, |
32 {"readrec", 2, 2, cmd_readrec}, | 36 {"readrec", 2, 2, cmd_readrec}, |
33 {"select", 1, 1, cmd_select}, | 37 {"select", 1, 1, cmd_select}, |
34 {"sim-resp", 0, 0, display_sim_resp_in_hex}, | 38 {"sim-resp", 0, 0, display_sim_resp_in_hex}, |