summaryrefslogtreecommitdiff
path: root/common/hardware_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/hardware_interface.h')
-rw-r--r--common/hardware_interface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/hardware_interface.h b/common/hardware_interface.h
index e434cc93..f5f900e5 100644
--- a/common/hardware_interface.h
+++ b/common/hardware_interface.h
@@ -70,6 +70,13 @@ class HardwareInterface {
// recovery don't have this value set.
virtual int GetPowerwashCount() const = 0;
+ // Signals that a powerwash (stateful partition wipe) should be performed
+ // after reboot.
+ virtual bool SchedulePowerwash() = 0;
+
+ // Cancel the powerwash operation scheduled to be performed on next boot.
+ virtual bool CancelPowerwash() = 0;
+
// Store in |path| the path to a non-volatile directory (persisted across
// reboots) available for this daemon. In case of an error, such as no
// directory available, returns false.