GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / tools / misc / xz / src / liblzma / common / easy_encoder.c
blobd13ccd7351f15341801f35caa7882a3d00098d7f
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file easy_encoder.c
4 /// \brief Easy .xz Stream encoder initialization
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
13 #include "easy_preset.h"
14 #include "stream_encoder.h"
17 extern LZMA_API(lzma_ret)
18 lzma_easy_encoder(lzma_stream *strm, uint32_t preset, lzma_check check)
20 lzma_options_easy opt_easy;
21 if (lzma_easy_preset(&opt_easy, preset))
22 return LZMA_OPTIONS_ERROR;
24 return lzma_stream_encoder(strm, opt_easy.filters, check);