Fix version.sh compatiblity with Solaris
[xz/debian.git] / src / liblzma / common / easy_preset.h
blob4ef6d044ad57a0a2ef175cd95440ef052dcdbe30
1 // SPDX-License-Identifier: 0BSD
3 ///////////////////////////////////////////////////////////////////////////////
4 //
5 /// \file easy_preset.h
6 /// \brief Preset handling for easy encoder and decoder
7 //
8 // Author: Lasse Collin
9 //
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef LZMA_EASY_PRESET_H
13 #define LZMA_EASY_PRESET_H
15 #include "common.h"
18 typedef struct {
19 /// We need to keep the filters array available in case
20 /// LZMA_FULL_FLUSH is used.
21 lzma_filter filters[LZMA_FILTERS_MAX + 1];
23 /// Options for LZMA2
24 lzma_options_lzma opt_lzma;
26 // Options for more filters can be added later, so this struct
27 // is not ready to be put into the public API.
29 } lzma_options_easy;
32 /// Set *easy to the settings given by the preset. Returns true on error,
33 /// false on success.
34 extern bool lzma_easy_preset(lzma_options_easy *easy, uint32_t preset);
36 #endif