aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-04-12 09:28:10 -0700
committerDoug Zongker <dougz@android.com>2011-04-12 09:28:10 -0700
commit469243e53689b6f312d20813444dc00d83528758 (patch)
treee59d3978874c4637efdd7fb86201b1c360f4e56d /common.h
parent3ed8e187212b06767e0ca5860cdbd79c11c9390e (diff)
downloadbootable_recovery-469243e53689b6f312d20813444dc00d83528758.zip
bootable_recovery-469243e53689b6f312d20813444dc00d83528758.tar.gz
bootable_recovery-469243e53689b6f312d20813444dc00d83528758.tar.bz2
save a last_install file with the result of the last package install attempt
When installing a package, create /cache/recovery/last_install, which contains the filename of the package and a 1 or 0 for success or failure. Also, don't mount ext4 and vfat filesystems as read-only (on devices where /cache is ext4, we need it to be read-write). Change-Id: I0cf2a1921bbd65e06343aa74e2006577fac77c2c
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index cba4c86..ef2fe9f 100644
--- a/common.h
+++ b/common.h
@@ -126,4 +126,7 @@ typedef struct {
} UIParameters;
+// fopen a file, mounting volumes and making parent dirs as necessary.
+FILE* fopen_path(const char *path, const char *mode);
+
#endif // RECOVERY_COMMON_H