Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
coder.h
Go to the documentation of this file.
1
2//
5//
6// Author: Lasse Collin
7//
8// This file has been put into the public domain.
9// You can do whatever you want with this file.
10//
12
19
20
21// NOTE: The order of these is significant in suffix.c.
26#ifdef HAVE_LZIP_DECODER
27 FORMAT_LZIP,
28#endif
30};
31
32
35extern enum operation_mode opt_mode;
36
40extern enum format_type opt_format;
41
44extern bool opt_auto_adjust;
45
47extern bool opt_single_stream;
48
51extern uint64_t opt_block_size;
52
55extern uint64_t *opt_block_list;
56
59
61extern void coder_set_preset(uint32_t new_preset);
62
64extern void coder_set_extreme(void);
65
67extern void coder_add_filter(lzma_vli id, void *options);
68
70extern void coder_set_compression_settings(void);
71
73extern void coder_run(const char *filename);
74
75#ifndef NDEBUG
77extern void coder_free(void);
78#endif
lzma_check
Type of the integrity check (Check ID)
Definition check.h:27
lzma_check check
Definition container.h:292
uint64_t lzma_vli
Variable-length integer type.
Definition vli.h:63
const lzma_options_lzma * options
Definition container.h:545
void coder_free(void)
Free the memory allocated for the coder and kill the worker threads.
Definition coder.c:1103
uint64_t * opt_block_list
Definition coder.c:29
void coder_set_extreme(void)
Enable extreme mode.
Definition coder.c:103
void coder_set_compression_settings(void)
Definition coder.c:142
operation_mode
Definition coder.h:13
@ MODE_COMPRESS
Definition coder.h:14
@ MODE_TEST
Definition coder.h:16
@ MODE_LIST
Definition coder.h:17
@ MODE_DECOMPRESS
Definition coder.h:15
enum format_type opt_format
Definition coder.c:25
void coder_add_filter(lzma_vli id, void *options)
Add a filter to the custom filter chain.
Definition coder.c:112
void coder_set_check(lzma_check check)
Set the integrity check type used when compressing.
Definition coder.c:69
format_type
Definition coder.h:22
@ FORMAT_RAW
Definition coder.h:29
@ FORMAT_AUTO
Definition coder.h:23
@ FORMAT_XZ
Definition coder.h:24
@ FORMAT_LZMA
Definition coder.h:25
void coder_run(const char *filename)
Compress or decompress the given file.
Definition coder.c:1024
bool opt_single_stream
If true, stop after decoding the first stream.
Definition coder.c:27
bool opt_auto_adjust
Definition coder.c:26
uint64_t opt_block_size
Definition coder.c:28
void coder_set_preset(uint32_t new_preset)
Set preset number.
Definition coder.c:93
enum operation_mode opt_mode
Definition coder.c:24