summaryrefslogtreecommitdiffstats
path: root/roots.h
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2014-08-06 04:49:09 +0200
committerAndres Morales <anmorales@google.com>2014-08-06 18:58:55 +0200
commitee19387905650cab5da7dd97ada5502cd17ac93d (patch)
tree46f1c336bce478470cf2b45511f7a55c61db5021 /roots.h
parentAuto create parent directories for rename support (diff)
downloadandroid_bootable_recovery-ee19387905650cab5da7dd97ada5502cd17ac93d.tar
android_bootable_recovery-ee19387905650cab5da7dd97ada5502cd17ac93d.tar.gz
android_bootable_recovery-ee19387905650cab5da7dd97ada5502cd17ac93d.tar.bz2
android_bootable_recovery-ee19387905650cab5da7dd97ada5502cd17ac93d.tar.lz
android_bootable_recovery-ee19387905650cab5da7dd97ada5502cd17ac93d.tar.xz
android_bootable_recovery-ee19387905650cab5da7dd97ada5502cd17ac93d.tar.zst
android_bootable_recovery-ee19387905650cab5da7dd97ada5502cd17ac93d.zip
Diffstat (limited to '')
-rw-r--r--roots.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/roots.h b/roots.h
index 230d9ded3..b62a5b13a 100644
--- a/roots.h
+++ b/roots.h
@@ -46,6 +46,11 @@ int format_volume(const char* volume);
// mounted (/tmp and /cache) are mounted. Returns 0 on success.
int setup_install_mounts();
+// Conditionally wipes the /persistent partition if it's marked
+// to wipe. Returns -1 on failure, 1 if the partition was wiped
+// and 0 if the partition was not wiped.
+int erase_persistent_partition();
+
#ifdef __cplusplus
}
#endif