summaryrefslogtreecommitdiffstats
path: root/otautil/include
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-04 08:01:13 +0200
committerTao Bao <tbao@google.com>2018-05-04 08:18:38 +0200
commit2c52639d01cb2ff9f0a805e0dda72d39a5487d88 (patch)
treef376f2005a2bc514781e4f94ca176378ab9a9f68 /otautil/include
parentotautil: Rename dir/sys/thermal utils. (diff)
downloadandroid_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar.gz
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar.bz2
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar.lz
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar.xz
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar.zst
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.zip
Diffstat (limited to 'otautil/include')
-rw-r--r--otautil/include/otautil/sysutil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/otautil/include/otautil/sysutil.h b/otautil/include/otautil/sysutil.h
index 52f6d20a7..649f8ffae 100644
--- a/otautil/include/otautil/sysutil.h
+++ b/otautil/include/otautil/sysutil.h
@@ -50,4 +50,8 @@ class MemMapping {
std::vector<MappedRange> ranges_;
};
+// Wrapper function to trigger a reboot, by additionally handling quiescent reboot mode. The
+// command should start with "reboot," (e.g. "reboot,bootloader" or "reboot,").
+bool reboot(const std::string& command);
+
#endif // _OTAUTIL_SYSUTIL