diff options
author | Karl Berry <karl@freefriends.org> | 2009-08-28 13:56:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-08-28 13:56:17 +0000 |
commit | 2f43e3eb8fbcc2b9b14bb83694c6dde17c22f6d1 (patch) | |
tree | c0340a4fc049e3c95dbd0345a22db2779068a724 /Build/source/utils/xz-4.999.9beta/src/liblzma/common/easy_preset.h | |
parent | 47876ed420256f4a2c52a4af0b0ae53824b7bcb4 (diff) |
xz utils update
git-svn-id: svn://tug.org/texlive/trunk@14912 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/xz-4.999.9beta/src/liblzma/common/easy_preset.h')
-rw-r--r-- | Build/source/utils/xz-4.999.9beta/src/liblzma/common/easy_preset.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Build/source/utils/xz-4.999.9beta/src/liblzma/common/easy_preset.h b/Build/source/utils/xz-4.999.9beta/src/liblzma/common/easy_preset.h new file mode 100644 index 00000000000..382ade89406 --- /dev/null +++ b/Build/source/utils/xz-4.999.9beta/src/liblzma/common/easy_preset.h @@ -0,0 +1,32 @@ +/////////////////////////////////////////////////////////////////////////////// +// +/// \file easy_preset.h +/// \brief Preset handling for easy encoder and decoder +// +// Author: Lasse Collin +// +// This file has been put into the public domain. +// You can do whatever you want with this file. +// +/////////////////////////////////////////////////////////////////////////////// + +#include "common.h" + + +typedef struct { + /// We need to keep the filters array available in case + /// LZMA_FULL_FLUSH is used. + lzma_filter filters[LZMA_FILTERS_MAX + 1]; + + /// Options for LZMA2 + lzma_options_lzma opt_lzma; + + // Options for more filters can be added later, so this struct + // is not ready to be put into the public API. + +} lzma_options_easy; + + +/// Set *easy to the settings given by the preset. Returns true on error, +/// false on success. +extern bool lzma_easy_preset(lzma_options_easy *easy, uint32_t preset); |