comparison simtool/dispatch.c @ 127:141489d31667

fc-simtool: a38 command implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 29 Jan 2021 03:40:20 +0000
parents 6c4567dd8946
children 2adb802b2a98
comparison
equal deleted inserted replaced
126:f18b87115cca 127:141489d31667
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <string.h> 7 #include <string.h>
8 #include <strings.h> 8 #include <strings.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
11 extern int cmd_a38();
11 extern int cmd_change_chv(); 12 extern int cmd_change_chv();
12 extern int cmd_disable_chv(); 13 extern int cmd_disable_chv();
13 extern int cmd_enable_chv(); 14 extern int cmd_enable_chv();
14 extern int cmd_exec(); 15 extern int cmd_exec();
15 extern int cmd_fix_sysmo_msisdn(); 16 extern int cmd_fix_sysmo_msisdn();
45 char *cmd; 46 char *cmd;
46 int minargs; 47 int minargs;
47 int maxargs; 48 int maxargs;
48 int (*func)(); 49 int (*func)();
49 } cmdtab[] = { 50 } cmdtab[] = {
51 {"a38", 1, 1, cmd_a38},
50 {"change-chv1", 2, 2, cmd_change_chv}, 52 {"change-chv1", 2, 2, cmd_change_chv},
51 {"change-chv2", 2, 2, cmd_change_chv}, 53 {"change-chv2", 2, 2, cmd_change_chv},
52 {"change-pin1", 2, 2, cmd_change_chv}, 54 {"change-pin1", 2, 2, cmd_change_chv},
53 {"change-pin2", 2, 2, cmd_change_chv}, 55 {"change-pin2", 2, 2, cmd_change_chv},
54 {"disable-chv", 1, 1, cmd_disable_chv}, 56 {"disable-chv", 1, 1, cmd_disable_chv},