FreeCalypso > hg > freecalypso-tools
comparison rvinterf/asyncshell/oneshot.c @ 748:b55a81ce7497
fc-shell: implement MMI_BATTERY_IND sending
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 22 Oct 2020 05:39:47 +0000 |
parents | 10f4062e049b |
children |
comparison
equal
deleted
inserted
replaced
747:efd85963ec85 | 748:b55a81ce7497 |
---|---|
7 #include <strings.h> | 7 #include <strings.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include "limits.h" | 9 #include "limits.h" |
10 #include "exitcodes.h" | 10 #include "exitcodes.h" |
11 | 11 |
12 extern int cmd_batt_oneshot(); | |
12 extern int cmd_key_oneshot(); | 13 extern int cmd_key_oneshot(); |
13 extern int cmd_keydown_oneshot(); | 14 extern int cmd_keydown_oneshot(); |
14 extern int cmd_keyup_oneshot(); | 15 extern int cmd_keyup_oneshot(); |
15 extern int cmd_poweroff(); | 16 extern int cmd_poweroff(); |
16 extern int cmd_send_oneshot(); | 17 extern int cmd_send_oneshot(); |
24 char *cmd; | 25 char *cmd; |
25 int minargs; | 26 int minargs; |
26 int maxargs; | 27 int maxargs; |
27 int (*func)(); | 28 int (*func)(); |
28 } cmdtab[] = { | 29 } cmdtab[] = { |
30 {"batt", 2, 2, cmd_batt_oneshot}, | |
29 {"key", 1, 1, cmd_key_oneshot}, | 31 {"key", 1, 1, cmd_key_oneshot}, |
30 {"keydown", 1, 1, cmd_keydown_oneshot}, | 32 {"keydown", 1, 1, cmd_keydown_oneshot}, |
31 {"keyup", 1, 1, cmd_keyup_oneshot}, | 33 {"keyup", 1, 1, cmd_keyup_oneshot}, |
32 {"poweroff", 0, 0, cmd_poweroff}, | 34 {"poweroff", 0, 0, cmd_poweroff}, |
33 {"send", 1, MAX_PKT_TO_TARGET, cmd_send_oneshot}, | 35 {"send", 1, MAX_PKT_TO_TARGET, cmd_send_oneshot}, |