aboutsummaryrefslogtreecommitdiff
path: root/C/Lzma2Enc.h
diff options
context:
space:
mode:
Diffstat (limited to 'C/Lzma2Enc.h')
-rw-r--r--C/Lzma2Enc.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/C/Lzma2Enc.h b/C/Lzma2Enc.h
index 6a6110f..cb25275 100644
--- a/C/Lzma2Enc.h
+++ b/C/Lzma2Enc.h
@@ -1,15 +1,15 @@
1/* Lzma2Enc.h -- LZMA2 Encoder 1/* Lzma2Enc.h -- LZMA2 Encoder
22017-07-27 : Igor Pavlov : Public domain */ 22023-04-13 : Igor Pavlov : Public domain */
3 3
4#ifndef __LZMA2_ENC_H 4#ifndef ZIP7_INC_LZMA2_ENC_H
5#define __LZMA2_ENC_H 5#define ZIP7_INC_LZMA2_ENC_H
6 6
7#include "LzmaEnc.h" 7#include "LzmaEnc.h"
8 8
9EXTERN_C_BEGIN 9EXTERN_C_BEGIN
10 10
11#define LZMA2_ENC_PROPS__BLOCK_SIZE__AUTO 0 11#define LZMA2_ENC_PROPS_BLOCK_SIZE_AUTO 0
12#define LZMA2_ENC_PROPS__BLOCK_SIZE__SOLID ((UInt64)(Int64)-1) 12#define LZMA2_ENC_PROPS_BLOCK_SIZE_SOLID ((UInt64)(Int64)-1)
13 13
14typedef struct 14typedef struct
15{ 15{
@@ -36,7 +36,9 @@ SRes:
36 SZ_ERROR_THREAD - error in multithreading functions (only for Mt version) 36 SZ_ERROR_THREAD - error in multithreading functions (only for Mt version)
37*/ 37*/
38 38
39typedef void * CLzma2EncHandle; 39typedef struct CLzma2Enc CLzma2Enc;
40typedef CLzma2Enc * CLzma2EncHandle;
41// Z7_DECLARE_HANDLE(CLzma2EncHandle)
40 42
41CLzma2EncHandle Lzma2Enc_Create(ISzAllocPtr alloc, ISzAllocPtr allocBig); 43CLzma2EncHandle Lzma2Enc_Create(ISzAllocPtr alloc, ISzAllocPtr allocBig);
42void Lzma2Enc_Destroy(CLzma2EncHandle p); 44void Lzma2Enc_Destroy(CLzma2EncHandle p);
@@ -44,11 +46,11 @@ SRes Lzma2Enc_SetProps(CLzma2EncHandle p, const CLzma2EncProps *props);
44void Lzma2Enc_SetDataSize(CLzma2EncHandle p, UInt64 expectedDataSiize); 46void Lzma2Enc_SetDataSize(CLzma2EncHandle p, UInt64 expectedDataSiize);
45Byte Lzma2Enc_WriteProperties(CLzma2EncHandle p); 47Byte Lzma2Enc_WriteProperties(CLzma2EncHandle p);
46SRes Lzma2Enc_Encode2(CLzma2EncHandle p, 48SRes Lzma2Enc_Encode2(CLzma2EncHandle p,
47 ISeqOutStream *outStream, 49 ISeqOutStreamPtr outStream,
48 Byte *outBuf, size_t *outBufSize, 50 Byte *outBuf, size_t *outBufSize,
49 ISeqInStream *inStream, 51 ISeqInStreamPtr inStream,
50 const Byte *inData, size_t inDataSize, 52 const Byte *inData, size_t inDataSize,
51 ICompressProgress *progress); 53 ICompressProgressPtr progress);
52 54
53EXTERN_C_END 55EXTERN_C_END
54 56