summaryrefslogtreecommitdiffstats
path: root/applypatch/include/applypatch/applypatch.h
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-11-07 09:22:13 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-11-07 09:22:13 +0100
commit9250c6ed3a9eba9f4c51b035d5949015dc1fa261 (patch)
tree80fbaa783f7b9ad8efed0f4f6303c0409b746150 /applypatch/include/applypatch/applypatch.h
parentSnap for 4434599 from 4d9ce1aa502c625e101cd91fe9b26aa8bfb2d26f to pi-release (diff)
parentMerge "Switch to bionic gtest in bootable/recovery" am: bf41f2aa23 am: c1ab2bb535 (diff)
downloadandroid_bootable_recovery-9250c6ed3a9eba9f4c51b035d5949015dc1fa261.tar
android_bootable_recovery-9250c6ed3a9eba9f4c51b035d5949015dc1fa261.tar.gz
android_bootable_recovery-9250c6ed3a9eba9f4c51b035d5949015dc1fa261.tar.bz2
android_bootable_recovery-9250c6ed3a9eba9f4c51b035d5949015dc1fa261.tar.lz
android_bootable_recovery-9250c6ed3a9eba9f4c51b035d5949015dc1fa261.tar.xz
android_bootable_recovery-9250c6ed3a9eba9f4c51b035d5949015dc1fa261.tar.zst
android_bootable_recovery-9250c6ed3a9eba9f4c51b035d5949015dc1fa261.zip
Diffstat (limited to 'applypatch/include/applypatch/applypatch.h')
-rw-r--r--applypatch/include/applypatch/applypatch.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/applypatch/include/applypatch/applypatch.h b/applypatch/include/applypatch/applypatch.h
index 2a3b3ef39..bcb8a4126 100644
--- a/applypatch/include/applypatch/applypatch.h
+++ b/applypatch/include/applypatch/applypatch.h
@@ -36,12 +36,11 @@ struct FileContents {
struct stat st;
};
-// When there isn't enough room on the target filesystem to hold the
-// patched version of the file, we copy the original here and delete
-// it to free up space. If the expected source file doesn't exist, or
-// is corrupted, we look to see if this file contains the bits we want
-// and use it as the source instead.
-#define CACHE_TEMP_SOURCE "/cache/saved.file"
+// When there isn't enough room on the target filesystem to hold the patched version of the file,
+// we copy the original here and delete it to free up space. If the expected source file doesn't
+// exist, or is corrupted, we look to see if the cached file contains the bits we want and use it as
+// the source instead. The default location for the cached source is "/cache/saved.file".
+extern std::string cache_temp_source;
using SinkFn = std::function<size_t(const unsigned char*, size_t)>;