Fix delta "sliding window" code
[git/git.git] / delta.h
CommitLineData
d1af002d
NP
1#ifndef DELTA_H
2#define DELTA_H
3
4/* handling of delta buffers */
a310d434
NP
5extern void *diff_delta(void *from_buf, unsigned long from_size,
6 void *to_buf, unsigned long to_size,
7 unsigned long *delta_size);
8extern void *patch_delta(void *src_buf, unsigned long src_size,
9 void *delta_buf, unsigned long delta_size,
10 unsigned long *dst_size);
d1af002d
NP
11
12/* handling of delta objects */
13struct delta;
14struct object_list;
5d6ccf5c 15extern struct delta *lookup_delta(const unsigned char *sha1);
d1af002d
NP
16extern int parse_delta_buffer(struct delta *item, void *buffer, unsigned long size);
17extern int parse_delta(struct delta *item, unsigned char sha1);
18extern int process_deltas(void *src, unsigned long src_size,
19 const char *src_type, struct object_list *delta);
20
21#endif