summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2017-10-26 16:40:01 +0200
committerAlex Deymo <deymo@google.com>2017-10-27 13:52:46 +0200
commite4458302223554ed97c799d95d4197e042f6dfbb (patch)
treed335ac809aba5a026a3be1ee7522e25d862c22c2 /include
parent8a179e5e27b78e171dc56012b2bc810a00162a27 (diff)
downloadbsdiff-e4458302223554ed97c799d95d4197e042f6dfbb.tar.gz
Cleanup bsdiff public API.
The original function used to generate a patch from two files is no longer used elsewhere so this patch removes it in favour of the newer version that takes the streams from memory buffers and uses a patch writer to generate the patch. Bug: None. Test: Ran `bsdiff` manually, verified bspatch applied correctly. Change-Id: I17aac1d3dd405d733ff6dc35abe8e683adea0d4f
Diffstat (limited to 'include')
-rw-r--r--include/bsdiff/bsdiff.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/bsdiff/bsdiff.h b/include/bsdiff/bsdiff.h
index 9d513a6..08cb688 100644
--- a/include/bsdiff/bsdiff.h
+++ b/include/bsdiff/bsdiff.h
@@ -14,17 +14,10 @@
namespace bsdiff {
-// Generate bsdiff patch from the |old_filename| file to the |new_filename|
-// file storing the resulting patch in a new |patch_filename| file.
-BSDIFF_EXPORT
-int bsdiff(const char* old_filename,
- const char* new_filename,
- const char* patch_filename);
-
// Generate bsdiff patch from |old_buf| to |new_buf|, save the patch file to
// |patch_filename|. Returns 0 on success.
-// |I_cache| can be used to cache the suffix array if the same |old_buf| is used
-// repeatedly, pass nullptr if not needed.
+// |sai_cache| can be used to cache the suffix array if the same |old_buf| is
+// used repeatedly, pass nullptr if not needed.
BSDIFF_EXPORT
int bsdiff(const uint8_t* old_buf,
size_t oldsize,