aboutsummaryrefslogtreecommitdiff
path: root/C/XzEnc.h
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2023-06-21 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2023-12-17 14:59:19 +0500
commit5b39dc76f1bc82f941d5c800ab9f34407a06b53a (patch)
treefe5e17420300b715021a76328444088d32047963 /C/XzEnc.h
parent93be7d4abfd4233228f58ee1fbbcd76d91be66a4 (diff)
download7zip-5b39dc76f1bc82f941d5c800ab9f34407a06b53a.tar.gz
7zip-5b39dc76f1bc82f941d5c800ab9f34407a06b53a.tar.bz2
7zip-5b39dc76f1bc82f941d5c800ab9f34407a06b53a.zip
23.0123.01
Diffstat (limited to 'C/XzEnc.h')
-rw-r--r--C/XzEnc.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/C/XzEnc.h b/C/XzEnc.h
index 0c29e7e..77b78c0 100644
--- a/C/XzEnc.h
+++ b/C/XzEnc.h
@@ -1,8 +1,8 @@
1/* XzEnc.h -- Xz Encode 1/* XzEnc.h -- Xz Encode
22017-06-27 : Igor Pavlov : Public domain */ 22023-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 @@
11EXTERN_C_BEGIN 11EXTERN_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
18typedef struct 18typedef struct
@@ -41,19 +41,20 @@ typedef struct
41 41
42void XzProps_Init(CXzProps *p); 42void XzProps_Init(CXzProps *p);
43 43
44 44typedef struct CXzEnc CXzEnc;
45typedef void * CXzEncHandle; 45typedef CXzEnc * CXzEncHandle;
46// Z7_DECLARE_HANDLE(CXzEncHandle)
46 47
47CXzEncHandle XzEnc_Create(ISzAllocPtr alloc, ISzAllocPtr allocBig); 48CXzEncHandle XzEnc_Create(ISzAllocPtr alloc, ISzAllocPtr allocBig);
48void XzEnc_Destroy(CXzEncHandle p); 49void XzEnc_Destroy(CXzEncHandle p);
49SRes XzEnc_SetProps(CXzEncHandle p, const CXzProps *props); 50SRes XzEnc_SetProps(CXzEncHandle p, const CXzProps *props);
50void XzEnc_SetDataSize(CXzEncHandle p, UInt64 expectedDataSiize); 51void XzEnc_SetDataSize(CXzEncHandle p, UInt64 expectedDataSiize);
51SRes XzEnc_Encode(CXzEncHandle p, ISeqOutStream *outStream, ISeqInStream *inStream, ICompressProgress *progress); 52SRes XzEnc_Encode(CXzEncHandle p, ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream, ICompressProgressPtr progress);
52 53
53SRes Xz_Encode(ISeqOutStream *outStream, ISeqInStream *inStream, 54SRes Xz_Encode(ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream,
54 const CXzProps *props, ICompressProgress *progress); 55 const CXzProps *props, ICompressProgressPtr progress);
55 56
56SRes Xz_EncodeEmpty(ISeqOutStream *outStream); 57SRes Xz_EncodeEmpty(ISeqOutStreamPtr outStream);
57 58
58EXTERN_C_END 59EXTERN_C_END
59 60