summaryrefslogtreecommitdiff
path: root/delta.h
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2005-05-19 14:27:14 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-19 15:56:22 (GMT)
commita310d4349467d78266f38d29e500c77b96ee5bef (patch)
tree33777305e65ea08fcb143ecc2a25f94bc75ee141 /delta.h
parent21949255d1a9c04ed8cba9c54ddac13889b2ea26 (diff)
downloadgit-a310d4349467d78266f38d29e500c77b96ee5bef.zip
git-a310d4349467d78266f38d29e500c77b96ee5bef.tar.gz
git-a310d4349467d78266f38d29e500c77b96ee5bef.tar.bz2
[PATCH] Deltification library work by Nicolas Pitre.
This patch adds the basic library functions to create and replay delta information. Also included is a test-delta utility to validate the code. diff-delta was based on LibXDiff written by Davide Libenzi Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Davide Libenzi <davidel@xmailserver.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'delta.h')
-rw-r--r--delta.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/delta.h b/delta.h
new file mode 100644
index 0000000..e073dff
--- /dev/null
+++ b/delta.h
@@ -0,0 +1,6 @@
+extern void *diff_delta(void *from_buf, unsigned long from_size,
+ void *to_buf, unsigned long to_size,
+ unsigned long *delta_size);
+extern void *patch_delta(void *src_buf, unsigned long src_size,
+ void *delta_buf, unsigned long delta_size,
+ unsigned long *dst_size);