summaryrefslogtreecommitdiff
path: root/android-commands.h
diff options
context:
space:
mode:
authorGreg Bellows <greg.bellows@linaro.org>2014-11-11 14:02:39 -0600
committerGreg Bellows <greg.bellows@linaro.org>2014-11-19 15:27:26 -0600
commit6e63f559ba7d8df57757ace66331fc598bb0c44f (patch)
tree451c4211a9c2cc7c1367e7f2b23174323317ab45 /android-commands.h
parent1067c9e01d2b074fd1e5efccf25b5682463e32da (diff)
android-console: Add console base power command
Added the base Android emulator console power command and infrastructure for adding sub-commands. Signed-off-by: Greg Bellows <greg.bellows@linaro.org> --- v1 -> v2 - Rework base power command help text.
Diffstat (limited to 'android-commands.h')
-rw-r--r--android-commands.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/android-commands.h b/android-commands.h
index 1bfd15d8e..29c8769b8 100644
--- a/android-commands.h
+++ b/android-commands.h
@@ -25,6 +25,10 @@ static mon_cmd_t android_redir_cmds[] = {
{ NULL, NULL, },
};
+static mon_cmd_t android_power_cmds[] = {
+ { NULL, NULL, },
+};
+
static mon_cmd_t android_cmds[] = {
{
.name = "help|h|?",
@@ -55,5 +59,12 @@ static mon_cmd_t android_cmds[] = {
.mhandler.cmd = android_console_redir,
.sub_table = android_redir_cmds,
},
+ { .name = "power",
+ .args_type = "item:s?",
+ .params = "",
+ .help = "power related commands",
+ .mhandler.cmd = android_console_power,
+ .sub_table = android_power_cmds,
+ },
{ NULL, NULL, },
};