23 lines
666 B
C

/*
islzma.h, by Jordan Russell for Inno Setup
This file is public domain (like the LZMA SDK)
*/
struct LZMAEncoderProps {
int Algorithm;
int BlockSize;
int BTMode;
int NumHashBytes;
UInt32 DictionarySize;
int NumBlockThreads;
int NumFastBytes;
int NumThreads;
};
SRes __stdcall LZMA_Init(BOOL LZMA2, struct LZMAHandle **handle);
SRes __stdcall LZMA_SetProps(struct LZMAHandle *handle,
struct LZMAEncoderProps *encProps, size_t encPropsSize);
SRes __stdcall LZMA_Encode(struct LZMAHandle *handle, ISeqInStream *inStream,
ISeqOutStream *outStream, ICompressProgress *progress);
SRes __stdcall LZMA_End(struct LZMAHandle *handle);