summaryrefslogtreecommitdiffstats
path: root/roots.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-07-30 23:43:27 +0200
committerRom Lemarchand <romlem@google.com>2015-11-16 23:28:40 +0100
commit8f90389966fabf532b24741d49245215279533e1 (patch)
tree84402f1188b05dc43d5ef00902475f92843e7029 /roots.h
parentapplypatch: Fix the checking in WriteToPartition(). (diff)
downloadandroid_bootable_recovery-8f90389966fabf532b24741d49245215279533e1.tar
android_bootable_recovery-8f90389966fabf532b24741d49245215279533e1.tar.gz
android_bootable_recovery-8f90389966fabf532b24741d49245215279533e1.tar.bz2
android_bootable_recovery-8f90389966fabf532b24741d49245215279533e1.tar.lz
android_bootable_recovery-8f90389966fabf532b24741d49245215279533e1.tar.xz
android_bootable_recovery-8f90389966fabf532b24741d49245215279533e1.tar.zst
android_bootable_recovery-8f90389966fabf532b24741d49245215279533e1.zip
Diffstat (limited to '')
-rw-r--r--roots.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/roots.h b/roots.h
index 230d9ded3..6e3b24355 100644
--- a/roots.h
+++ b/roots.h
@@ -19,10 +19,6 @@
#include "common.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Load and parse volume data from /etc/recovery.fstab.
void load_volume_table();
@@ -33,7 +29,10 @@ Volume* volume_for_path(const char* path);
// success (volume is mounted).
int ensure_path_mounted(const char* path);
-// Make sure that the volume 'path' is on is mounted. Returns 0 on
+// Similar to ensure_path_mounted, but allows one to specify the mount_point.
+int ensure_path_mounted_at(const char* path, const char* mount_point);
+
+// Make sure that the volume 'path' is on is unmounted. Returns 0 on
// success (volume is unmounted);
int ensure_path_unmounted(const char* path);
@@ -46,8 +45,4 @@ int format_volume(const char* volume);
// mounted (/tmp and /cache) are mounted. Returns 0 on success.
int setup_install_mounts();
-#ifdef __cplusplus
-}
-#endif
-
#endif // RECOVERY_ROOTS_H_