summaryrefslogtreecommitdiffstats
path: root/otafault/ota_io.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-02-23 05:57:39 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-02-23 05:57:39 +0100
commit24b3622933092c7227a391939f3f1cdcd3d7c999 (patch)
treee3cfe7417bd136b2d7c6476644cbecb31a989749 /otafault/ota_io.h
parentMerge "recovery: check battery level before installing package." (diff)
parentMerge "Control fault injection with config files instead of build flags" (diff)
downloadandroid_bootable_recovery-24b3622933092c7227a391939f3f1cdcd3d7c999.tar
android_bootable_recovery-24b3622933092c7227a391939f3f1cdcd3d7c999.tar.gz
android_bootable_recovery-24b3622933092c7227a391939f3f1cdcd3d7c999.tar.bz2
android_bootable_recovery-24b3622933092c7227a391939f3f1cdcd3d7c999.tar.lz
android_bootable_recovery-24b3622933092c7227a391939f3f1cdcd3d7c999.tar.xz
android_bootable_recovery-24b3622933092c7227a391939f3f1cdcd3d7c999.tar.zst
android_bootable_recovery-24b3622933092c7227a391939f3f1cdcd3d7c999.zip
Diffstat (limited to 'otafault/ota_io.h')
-rw-r--r--otafault/ota_io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/otafault/ota_io.h b/otafault/ota_io.h
index 641a5ae0a..84187a76e 100644
--- a/otafault/ota_io.h
+++ b/otafault/ota_io.h
@@ -26,6 +26,10 @@
#include <stdio.h>
#include <sys/stat.h>
+#define OTAIO_CACHE_FNAME "/cache/saved.file"
+
+void ota_set_fault_files();
+
int ota_open(const char* path, int oflags);
int ota_open(const char* path, int oflags, mode_t mode);