summaryrefslogtreecommitdiffstats
path: root/roots.h
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2014-08-06 19:41:05 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-06 19:41:05 +0200
commitf38d6e5a3610075fdc57d1cc88287aae3dd47d00 (patch)
tree1d60fc74a6983fe4a1ef3f60e2d039857a18c2a1 /roots.h
parentam 2b5f0e0f: remove spurious parens from error message (diff)
parentMerge "Erase PST partition if its marked to be erased." into lmp-dev (diff)
downloadandroid_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar.gz
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar.bz2
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar.lz
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar.xz
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar.zst
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.zip
Diffstat (limited to 'roots.h')
-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