summaryrefslogtreecommitdiffstats
path: root/otautil/include
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2018-05-04 19:26:11 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-05-04 19:26:11 +0200
commit420f7f8df45b16aa984396270419cacf11baeab6 (patch)
treef376f2005a2bc514781e4f94ca176378ab9a9f68 /otautil/include
parentMerge "otautil: Only build the needed files for host build." (diff)
parentMove reboot() from common.h into otautil/sysutil.h. (diff)
downloadandroid_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar
android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar.gz
android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar.bz2
android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar.lz
android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar.xz
android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar.zst
android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.zip
Diffstat (limited to 'otautil/include')
-rw-r--r--otautil/include/otautil/dirutil.h (renamed from otautil/include/otautil/DirUtil.h)0
-rw-r--r--otautil/include/otautil/sysutil.h (renamed from otautil/include/otautil/SysUtil.h)4
-rw-r--r--otautil/include/otautil/thermalutil.h (renamed from otautil/include/otautil/ThermalUtil.h)0
3 files changed, 4 insertions, 0 deletions
diff --git a/otautil/include/otautil/DirUtil.h b/otautil/include/otautil/dirutil.h
index 85d6c16d1..85d6c16d1 100644
--- a/otautil/include/otautil/DirUtil.h
+++ b/otautil/include/otautil/dirutil.h
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
diff --git a/otautil/include/otautil/ThermalUtil.h b/otautil/include/otautil/thermalutil.h
index 43ab55940..43ab55940 100644
--- a/otautil/include/otautil/ThermalUtil.h
+++ b/otautil/include/otautil/thermalutil.h