summaryrefslogtreecommitdiffstats
path: root/applypatch/include
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-04-20 06:02:13 +0200
committerTao Bao <tbao@google.com>2018-04-20 18:27:50 +0200
commit8b0b0f1f02f7990177e0da89eb471da2ced13f4c (patch)
treece9cf683304b2d70ae800bb6811842b375904beb /applypatch/include
parentMerge "applypatch: Dump patch info on mismatching patching result." (diff)
downloadandroid_bootable_recovery-8b0b0f1f02f7990177e0da89eb471da2ced13f4c.tar
android_bootable_recovery-8b0b0f1f02f7990177e0da89eb471da2ced13f4c.tar.gz
android_bootable_recovery-8b0b0f1f02f7990177e0da89eb471da2ced13f4c.tar.bz2
android_bootable_recovery-8b0b0f1f02f7990177e0da89eb471da2ced13f4c.tar.lz
android_bootable_recovery-8b0b0f1f02f7990177e0da89eb471da2ced13f4c.tar.xz
android_bootable_recovery-8b0b0f1f02f7990177e0da89eb471da2ced13f4c.tar.zst
android_bootable_recovery-8b0b0f1f02f7990177e0da89eb471da2ced13f4c.zip
Diffstat (limited to 'applypatch/include')
-rw-r--r--applypatch/include/applypatch/applypatch.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/applypatch/include/applypatch/applypatch.h b/applypatch/include/applypatch/applypatch.h
index 021a28d05..77125f9de 100644
--- a/applypatch/include/applypatch/applypatch.h
+++ b/applypatch/include/applypatch/applypatch.h
@@ -63,18 +63,18 @@ int SaveFileContents(const char* filename, const FileContents* file);
void ShowBSDiffLicense();
// Applies the bsdiff-patch given in 'patch' (from offset 'patch_offset' to the end) to the source
-// data given by (old_data, old_size). Writes the patched output through the given 'sink', and
-// updates the SHA-1 context with the output data. Returns 0 on success.
+// data given by (old_data, old_size). Writes the patched output through the given 'sink'. Returns
+// 0 on success.
int ApplyBSDiffPatch(const unsigned char* old_data, size_t old_size, const Value& patch,
- size_t patch_offset, SinkFn sink, SHA_CTX* ctx);
+ size_t patch_offset, SinkFn sink);
// imgpatch.cpp
// Applies the imgdiff-patch given in 'patch' to the source data given by (old_data, old_size), with
-// the optional bonus data. Writes the patched output through the given 'sink', and updates the
-// SHA-1 context with the output data. Returns 0 on success.
+// the optional bonus data. Writes the patched output through the given 'sink'. Returns 0 on
+// success.
int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink,
- SHA_CTX* ctx, const Value* bonus_data);
+ const Value* bonus_data);
// freecache.cpp