aboutsummaryrefslogtreecommitdiff
path: root/android-commands.h
diff options
context:
space:
mode:
authorGreg Bellows <greg.bellows@linaro.org>2014-11-11 15:18:12 -0600
committerAlex Bennée <alex.bennee@linaro.org>2015-01-07 11:36:05 +0000
commit7b9fa6ab011fcb087c0eea17b455ab08e7baab31 (patch)
tree6dd6e3b6ccd95e0f728be345aa478d0fd13b9da3 /android-commands.h
parent5d6715139ca804c17dd369d598382ce27936a28e (diff)
downloadqemu-android-7b9fa6ab011fcb087c0eea17b455ab08e7baab31.tar.gz
android-console: Add power capacity command
Add the Android emulator console "power capacity" command along associated help messages. The "capacity" command allows the battery capacity 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/android-commands.h b/android-commands.h
index d11544d203..3e429456f8 100644
--- a/android-commands.h
+++ b/android-commands.h
@@ -61,6 +61,13 @@ static mon_cmd_t android_power_cmds[] = {
.help = "set battery health state",
.mhandler.cmd = android_console_power_health,
},
+ {
+ .name = "capacity",
+ .args_type = "arg:s?",
+ .params = "",
+ .help = "set battery capacity state",
+ .mhandler.cmd = android_console_power_capacity,
+ },
{ NULL, NULL, },
};