diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2018-05-04 19:26:11 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-04 19:26:11 +0200 |
commit | 420f7f8df45b16aa984396270419cacf11baeab6 (patch) | |
tree | f376f2005a2bc514781e4f94ca176378ab9a9f68 /otautil/include | |
parent | Merge "otautil: Only build the needed files for host build." (diff) | |
parent | Move reboot() from common.h into otautil/sysutil.h. (diff) | |
download | android_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 |