aboutsummaryrefslogtreecommitdiff
path: root/linux/lib/xz/xz_stream.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-05-30 22:54:53 +0300
committerLasse Collin <lasse.collin@tukaani.org>2010-05-30 22:54:53 +0300
commit09900b96d8ff05778d3cfcdd000d3e8979791d24 (patch)
tree1642082338b16ae5aed2c8cf78b3b133dd756d58 /linux/lib/xz/xz_stream.h
parent36b83dd6c173a9b881978247b8a486829984fd5b (diff)
downloadxz-embedded-09900b96d8ff05778d3cfcdd000d3e8979791d24.tar.gz
Support decompressing files with unsupported check types.
This is enabled at compile time by defining XZ_DEC_ANY_CHECK. If the Check ID is not supported, xz_dec_run() will return XZ_UNSUPPORTED_CHECK. In multi-call mode, decoding can be then continued normally. In single-call mode, decoding cannot be continued, thus this feature is useful only in multi-call mode.
Diffstat (limited to 'linux/lib/xz/xz_stream.h')
-rw-r--r--linux/lib/xz/xz_stream.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/linux/lib/xz/xz_stream.h b/linux/lib/xz/xz_stream.h
index 5b9318b..36f2a7c 100644
--- a/linux/lib/xz/xz_stream.h
+++ b/linux/lib/xz/xz_stream.h
@@ -43,4 +43,15 @@ typedef uint64_t vli_type;
/* Maximum encoded size of a VLI */
#define VLI_BYTES_MAX (sizeof(vli_type) * 8 / 7)
+/* Integrity Check types */
+enum xz_check {
+ XZ_CHECK_NONE = 0,
+ XZ_CHECK_CRC32 = 1,
+ XZ_CHECK_CRC64 = 4,
+ XZ_CHECK_SHA256 = 10
+};
+
+/* Maximum possible Check ID */
+#define XZ_CHECK_MAX 15
+
#endif