summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3.h
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2008-09-13 12:12:55 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2008-09-13 12:12:55 +0000
commit78a9c799db76946ba9c266f09a4a18075b8b6965 (patch)
treea0b1ac11cfa7853a257ffd62d507bee0f25cfb31 /xdelta3/xdelta3.h
parent1a5047d649aefdbff708f0a5d2a8de4c5edf7176 (diff)
Implement adler32 and appheader for merge command.
Diffstat (limited to 'xdelta3/xdelta3.h')
-rw-r--r--xdelta3/xdelta3.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h
index 362e173..3aab8b6 100644
--- a/xdelta3/xdelta3.h
+++ b/xdelta3/xdelta3.h
@@ -249,6 +249,7 @@ typedef struct _xd3_code_table_desc xd3_code_table_desc;
249typedef struct _xd3_code_table_sizes xd3_code_table_sizes; 249typedef struct _xd3_code_table_sizes xd3_code_table_sizes;
250typedef struct _xd3_slist xd3_slist; 250typedef struct _xd3_slist xd3_slist;
251typedef struct _xd3_whole_state xd3_whole_state; 251typedef struct _xd3_whole_state xd3_whole_state;
252typedef struct _xd3_wininfo xd3_wininfo;
252 253
253/* The stream configuration has three callbacks functions, all of 254/* The stream configuration has three callbacks functions, all of
254 * which may be supplied with NULL values. If config->getblk is 255 * which may be supplied with NULL values. If config->getblk is
@@ -638,6 +639,13 @@ struct _xd3_slist
638 usize_t last_pos; 639 usize_t last_pos;
639}; 640};
640 641
642/* window info (for whole state) */
643struct _xd3_wininfo {
644 xoff_t offset;
645 usize_t length;
646 uint32_t adler32;
647};
648
641/* whole state for, e.g., merge */ 649/* whole state for, e.g., merge */
642struct _xd3_whole_state { 650struct _xd3_whole_state {
643 usize_t addslen; 651 usize_t addslen;
@@ -648,12 +656,11 @@ struct _xd3_whole_state {
648 xd3_winst *inst; 656 xd3_winst *inst;
649 usize_t inst_alloc; 657 usize_t inst_alloc;
650 658
651 usize_t winsizeslen; 659 usize_t wininfolen;
652 usize_t *winsizes; 660 xd3_wininfo *wininfo;
653 usize_t winsizes_alloc; 661 usize_t wininfo_alloc;
654 662
655 xoff_t length; 663 xoff_t length;
656 xoff_t windows;
657}; 664};
658 665
659/******************************************************************** 666/********************************************************************