diff options
author | Greg Bellows <greg.bellows@linaro.org> | 2014-11-11 14:47:05 -0600 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2015-01-07 11:36:05 +0000 |
commit | e88d45767c19cf6e2f4c6f93e633bd62e1f5bd85 (patch) | |
tree | 9bb6c38342145b68a3033ab5cbbf2ca9c13dd590 /android-commands.h | |
parent | 02612bb68ac6ddc70062600abe36e683f6c8c3d5 (diff) |
android-console: Add power ac command
Add the Android emulator console "power ac" along with the associated help
messages. The "ac" command allows the power supply state of the device to be
manipulated.
Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
---
v2 -> v3
- Add missing "OK" messages
Diffstat (limited to 'android-commands.h')
-rw-r--r-- | android-commands.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android-commands.h b/android-commands.h index 67e3c4634..e770fcfae 100644 --- a/android-commands.h +++ b/android-commands.h @@ -33,6 +33,13 @@ static mon_cmd_t android_power_cmds[] = { .help = "display battery and charger state", .mhandler.cmd = android_console_power_display, }, + { + .name = "ac", + .args_type = "arg:s?", + .params = "", + .help = "set AC charging state", + .mhandler.cmd = android_console_power_ac, + }, { NULL, NULL, }, }; |