summaryrefslogtreecommitdiffstats
path: root/minadbd/minadbd_types.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-04-20 00:22:15 +0200
committerTao Bao <tbao@google.com>2019-04-26 21:25:02 +0200
commit7b9b7db877f082a9adaa8b8a8572940cb5720a11 (patch)
treec2ae03dbad729d44022c379bcc6ce429b2c93b27 /minadbd/minadbd_types.h
parentAdd test for minadbd (diff)
downloadandroid_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar.gz
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar.bz2
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar.lz
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar.xz
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.tar.zst
android_bootable_recovery-7b9b7db877f082a9adaa8b8a8572940cb5720a11.zip
Diffstat (limited to 'minadbd/minadbd_types.h')
-rw-r--r--minadbd/minadbd_types.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/minadbd/minadbd_types.h b/minadbd/minadbd_types.h
index 5fb7803e7..b370b7952 100644
--- a/minadbd/minadbd_types.h
+++ b/minadbd/minadbd_types.h
@@ -43,12 +43,19 @@ enum class MinadbdCommandStatus : uint32_t {
kFailure = 1,
};
-enum class MinadbdCommands : uint32_t {
+enum class MinadbdCommand : uint32_t {
kInstall = 0,
kUiPrint = 1,
- kError = 2,
+ kRebootAndroid = 2,
+ kRebootBootloader = 3,
+ kRebootFastboot = 4,
+ kRebootRecovery = 5,
+ kRebootRescue = 6,
+
+ // Last but invalid command.
+ kError,
};
-static_assert(kMinadbdMessageSize == sizeof(kMinadbdCommandPrefix) - 1 + sizeof(MinadbdCommands));
+static_assert(kMinadbdMessageSize == sizeof(kMinadbdCommandPrefix) - 1 + sizeof(MinadbdCommand));
static_assert(kMinadbdMessageSize ==
sizeof(kMinadbdStatusPrefix) - 1 + sizeof(MinadbdCommandStatus));