summaryrefslogtreecommitdiffstats
path: root/src/libs/7zip/win/C/XzEnc.h
blob: c3c19eca0087405e2bf72a726f4a0d1c45b49bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* XzEnc.h -- Xz Encode
2011-02-07 : Igor Pavlov : Public domain */

#ifndef __XZ_ENC_H
#define __XZ_ENC_H

#include "Lzma2Enc.h"

#include "Xz.h"

EXTERN_C_BEGIN

typedef struct
{
  UInt32 id;
  UInt32 delta;
  UInt32 ip;
  int ipDefined;
} CXzFilterProps;

void XzFilterProps_Init(CXzFilterProps *p);

typedef struct
{
  const CLzma2EncProps *lzma2Props;
  const CXzFilterProps *filterProps;
  unsigned checkId;
} CXzProps;

void XzProps_Init(CXzProps *p);

SRes Xz_Encode(ISeqOutStream *outStream, ISeqInStream *inStream,
    const CXzProps *props, ICompressProgress *progress);

SRes Xz_EncodeEmpty(ISeqOutStream *outStream);

EXTERN_C_END

#endif