Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
xz_pipe_comp.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdbool.h>
#include <lzma.h>

Macros

#define COMPRESSION_LEVEL   6
 
#define COMPRESSION_EXTREME   true
 
#define INTEGRITY_CHECK   LZMA_CHECK_CRC64
 
#define IN_BUF_MAX   4096
 
#define OUT_BUF_MAX   4096
 
#define RET_OK   0
 
#define RET_ERROR_INIT   1
 
#define RET_ERROR_INPUT   2
 
#define RET_ERROR_OUTPUT   3
 
#define RET_ERROR_COMPRESSION   4
 

Functions

int xz_compress (FILE *in_file, FILE *out_file)
 
int main ()
 

Macro Definition Documentation

◆ COMPRESSION_EXTREME

#define COMPRESSION_EXTREME   true

◆ COMPRESSION_LEVEL

#define COMPRESSION_LEVEL   6

◆ IN_BUF_MAX

#define IN_BUF_MAX   4096

◆ INTEGRITY_CHECK

#define INTEGRITY_CHECK   LZMA_CHECK_CRC64

◆ OUT_BUF_MAX

#define OUT_BUF_MAX   4096

◆ RET_ERROR_COMPRESSION

#define RET_ERROR_COMPRESSION   4

◆ RET_ERROR_INIT

#define RET_ERROR_INIT   1

◆ RET_ERROR_INPUT

#define RET_ERROR_INPUT   2

◆ RET_ERROR_OUTPUT

#define RET_ERROR_OUTPUT   3

◆ RET_OK

#define RET_OK   0

Function Documentation

◆ main()

int main ( void )

◆ xz_compress()

int xz_compress ( FILE * in_file,
FILE * out_file )