From 95908b328a7b4610a33c63c88b2ec11515e00975 Mon Sep 17 00:00:00 2001 From: Kevin Bortis Date: Wed, 18 Mar 2026 22:11:34 +0100 Subject: [PATCH] Reserve compression IDs 4 and 5 for Zstandard (zstd) Adds kCompressionZstd = 4 and kCompressionZstdCst = 5 to the CompressionType enum, following the existing LZMA/LzmaCst pattern. Ref: https://github.com/aaru-dps/libaaruformat/issues/5 --- include/aaruformat/enums.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/aaruformat/enums.h b/include/aaruformat/enums.h index 644ee91..3b148cb 100644 --- a/include/aaruformat/enums.h +++ b/include/aaruformat/enums.h @@ -33,7 +33,9 @@ typedef enum kCompressionNone = 0, ///< Not compressed. kCompressionLzma = 1, ///< LZMA compression. kCompressionFlac = 2, ///< FLAC compression. - kCompressionLzmaCst = 3 ///< LZMA applied to Claunia Subchannel Transform processed data. + kCompressionLzmaCst = 3, ///< LZMA applied to Claunia Subchannel Transform processed data. + kCompressionZstd = 4, ///< Zstandard compression (reserved for future implementation). + kCompressionZstdCst = 5 ///< Zstandard applied to Claunia Subchannel Transform processed data (reserved). } CompressionType; /**