diff options
Diffstat (limited to 'xdelta3/xdelta3.h')
-rw-r--r-- | xdelta3/xdelta3.h | 15 |
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; | |||
249 | typedef struct _xd3_code_table_sizes xd3_code_table_sizes; | 249 | typedef struct _xd3_code_table_sizes xd3_code_table_sizes; |
250 | typedef struct _xd3_slist xd3_slist; | 250 | typedef struct _xd3_slist xd3_slist; |
251 | typedef struct _xd3_whole_state xd3_whole_state; | 251 | typedef struct _xd3_whole_state xd3_whole_state; |
252 | typedef 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) */ | ||
643 | struct _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 */ |
642 | struct _xd3_whole_state { | 650 | struct _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 | /******************************************************************** |