summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3.h
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2007-12-02 06:53:28 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2007-12-02 06:53:28 +0000
commitd13bec62c6ab184903118bf803219b27229c214e (patch)
tree6462a7dd911a40d02f060481ab06148a2c0807a9 /xdelta3/xdelta3.h
parent179ef5eef18e8dbb84f35a6356621e7c1ed7012a (diff)
Fix recode, recode test.
Diffstat (limited to 'xdelta3/xdelta3.h')
-rw-r--r--xdelta3/xdelta3.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h
index 48d766f..e495d00 100644
--- a/xdelta3/xdelta3.h
+++ b/xdelta3/xdelta3.h
@@ -373,6 +373,7 @@ typedef enum
373 * algorithm", instead use greedy 373 * algorithm", instead use greedy
374 * matching. Greedy is off by 374 * matching. Greedy is off by
375 * default. */ 375 * default. */
376 XD3_ADLER32_RECODE = (1 << 15), /* used by "recode". */
376 377
377 /* 4 bits to set the compression level the same as the command-line 378 /* 4 bits to set the compression level the same as the command-line
378 * setting -1 through -9 (-0 corresponds to the XD3_NOCOMPRESS flag, 379 * setting -1 through -9 (-0 corresponds to the XD3_NOCOMPRESS flag,
@@ -813,6 +814,8 @@ struct _xd3_stream
813 head of chain */ 814 head of chain */
814 xd3_output *enc_tails[4]; /* array of encoded outputs: 815 xd3_output *enc_tails[4]; /* array of encoded outputs:
815 tail of chain */ 816 tail of chain */
817 uint32_t recode_adler32; /* set the adler32 checksum
818 * during "recode". */
816 819
817 xd3_rlist iopt_used; /* instruction optimizing buffer */ 820 xd3_rlist iopt_used; /* instruction optimizing buffer */
818 xd3_rlist iopt_free; 821 xd3_rlist iopt_free;
@@ -1148,15 +1151,15 @@ void xd3_consume_output (xd3_stream *stream)
1148 1151
1149/* These are set for each XD3_WINFINISH return. */ 1152/* These are set for each XD3_WINFINISH return. */
1150static inline 1153static inline
1151int xd3_encoder_used_source (xd3_stream *stream) { 1154int xd3_encoder_used_source (xd3_stream *stream) {
1152 return stream->src != NULL && stream->src->srclen > 0; 1155 return stream->src != NULL && stream->src->srclen > 0;
1153} 1156}
1154static inline 1157static inline
1155xoff_t xd3_encoder_srcbase (xd3_stream *stream) { 1158xoff_t xd3_encoder_srcbase (xd3_stream *stream) {
1156 return stream->src->srcbase; 1159 return stream->src->srcbase;
1157} 1160}
1158static inline 1161static inline
1159usize_t xd3_encoder_srclen (xd3_stream *stream) { 1162usize_t xd3_encoder_srclen (xd3_stream *stream) {
1160 return stream->src->srclen; 1163 return stream->src->srclen;
1161} 1164}
1162 1165