2N/A * GRUB -- GRand Unified Bootloader 2N/A * Copyright (c) 1999-2008 Igor Pavlov 2N/A * Copyright (C) 2008 Free Software Foundation, Inc. 2N/A * GRUB is free software: you can redistribute it and/or modify 2N/A * it under the terms of the GNU General Public License as published by 2N/A * the Free Software Foundation, either version 3 of the License, or 2N/A * (at your option) any later version. 2N/A * GRUB is distributed in the hope that it will be useful, 2N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of 2N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2N/A * GNU General Public License for more details. 2N/A * You should have received a copy of the GNU General Public License 2N/A * This code was taken from LZMA SDK 4.58 beta, and was slightly modified 2N/A * to adapt it to GRUB's requirement. 2N/A (1 << 12) <= dictSize <= (1 << 30) for 64-bit version 2N/A default = (1 << 24) */ 2N/A int lc;
/* 0 <= lc <= 8, default = 3 */ 2N/A int lp;
/* 0 <= lp <= 4, default = 0 */ 2N/A int pb;
/* 0 <= pb <= 4, default = 2 */ 2N/A int algo;
/* 0 - fast, 1 - normal, default = 1 */ 2N/A int fb;
/* 5 <= fb <= 273, default = 32 */ 2N/A int btMode;
/* 0 - hashChain Mode, 1 - binTree mode - normal, default = 1 */ 2N/A unsigned writeEndMark;
/* 0 - do not write EOPM, 1 - write EOPM, default = 0 */ 2N/A/* ---------- CLzmaEncHandle Interface ---------- */ 2N/A/* LzmaEnc_* functions can return the following exit codes: 2N/A SZ_ERROR_MEM - Memory allocation error 2N/A SZ_ERROR_PARAM - Incorrect parameter in props 2N/A SZ_ERROR_WRITE - Write callback error. 2N/A SZ_ERROR_PROGRESS - some break from progress callback 2N/A SZ_ERROR_THREAD - errors in multithreading functions (only for Mt version) 2N/A/* ---------- One Call Interface ---------- */ 2N/A SZ_ERROR_MEM - Memory allocation error 2N/A SZ_ERROR_PARAM - Incorrect parameter 2N/A SZ_ERROR_OUTPUT_EOF - output buffer overflow 2N/A SZ_ERROR_THREAD - errors in multithreading functions (only for Mt version)