diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2023-06-21 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2023-12-17 14:59:19 +0500 |
commit | 5b39dc76f1bc82f941d5c800ab9f34407a06b53a (patch) | |
tree | fe5e17420300b715021a76328444088d32047963 /C/XzEnc.h | |
parent | 93be7d4abfd4233228f58ee1fbbcd76d91be66a4 (diff) | |
download | 7zip-5b39dc76f1bc82f941d5c800ab9f34407a06b53a.tar.gz 7zip-5b39dc76f1bc82f941d5c800ab9f34407a06b53a.tar.bz2 7zip-5b39dc76f1bc82f941d5c800ab9f34407a06b53a.zip |
23.0123.01
Diffstat (limited to 'C/XzEnc.h')
-rw-r--r-- | C/XzEnc.h | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -1,8 +1,8 @@ | |||
1 | /* XzEnc.h -- Xz Encode | 1 | /* XzEnc.h -- Xz Encode |
2 | 2017-06-27 : Igor Pavlov : Public domain */ | 2 | 2023-04-13 : Igor Pavlov : Public domain */ |
3 | 3 | ||
4 | #ifndef __XZ_ENC_H | 4 | #ifndef ZIP7_INC_XZ_ENC_H |
5 | #define __XZ_ENC_H | 5 | #define ZIP7_INC_XZ_ENC_H |
6 | 6 | ||
7 | #include "Lzma2Enc.h" | 7 | #include "Lzma2Enc.h" |
8 | 8 | ||
@@ -11,8 +11,8 @@ | |||
11 | EXTERN_C_BEGIN | 11 | EXTERN_C_BEGIN |
12 | 12 | ||
13 | 13 | ||
14 | #define XZ_PROPS__BLOCK_SIZE__AUTO LZMA2_ENC_PROPS__BLOCK_SIZE__AUTO | 14 | #define XZ_PROPS_BLOCK_SIZE_AUTO LZMA2_ENC_PROPS_BLOCK_SIZE_AUTO |
15 | #define XZ_PROPS__BLOCK_SIZE__SOLID LZMA2_ENC_PROPS__BLOCK_SIZE__SOLID | 15 | #define XZ_PROPS_BLOCK_SIZE_SOLID LZMA2_ENC_PROPS_BLOCK_SIZE_SOLID |
16 | 16 | ||
17 | 17 | ||
18 | typedef struct | 18 | typedef struct |
@@ -41,19 +41,20 @@ typedef struct | |||
41 | 41 | ||
42 | void XzProps_Init(CXzProps *p); | 42 | void XzProps_Init(CXzProps *p); |
43 | 43 | ||
44 | 44 | typedef struct CXzEnc CXzEnc; | |
45 | typedef void * CXzEncHandle; | 45 | typedef CXzEnc * CXzEncHandle; |
46 | // Z7_DECLARE_HANDLE(CXzEncHandle) | ||
46 | 47 | ||
47 | CXzEncHandle XzEnc_Create(ISzAllocPtr alloc, ISzAllocPtr allocBig); | 48 | CXzEncHandle XzEnc_Create(ISzAllocPtr alloc, ISzAllocPtr allocBig); |
48 | void XzEnc_Destroy(CXzEncHandle p); | 49 | void XzEnc_Destroy(CXzEncHandle p); |
49 | SRes XzEnc_SetProps(CXzEncHandle p, const CXzProps *props); | 50 | SRes XzEnc_SetProps(CXzEncHandle p, const CXzProps *props); |
50 | void XzEnc_SetDataSize(CXzEncHandle p, UInt64 expectedDataSiize); | 51 | void XzEnc_SetDataSize(CXzEncHandle p, UInt64 expectedDataSiize); |
51 | SRes XzEnc_Encode(CXzEncHandle p, ISeqOutStream *outStream, ISeqInStream *inStream, ICompressProgress *progress); | 52 | SRes XzEnc_Encode(CXzEncHandle p, ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream, ICompressProgressPtr progress); |
52 | 53 | ||
53 | SRes Xz_Encode(ISeqOutStream *outStream, ISeqInStream *inStream, | 54 | SRes Xz_Encode(ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream, |
54 | const CXzProps *props, ICompressProgress *progress); | 55 | const CXzProps *props, ICompressProgressPtr progress); |
55 | 56 | ||
56 | SRes Xz_EncodeEmpty(ISeqOutStream *outStream); | 57 | SRes Xz_EncodeEmpty(ISeqOutStreamPtr outStream); |
57 | 58 | ||
58 | EXTERN_C_END | 59 | EXTERN_C_END |
59 | 60 | ||