1 ///////////////////////////////////////////////////////////////////////////////
4 /// \brief Compresses or uncompresses a file
6 // Author: Lasse Collin
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
21 // NOTE: The order of these is significant in suffix.c.
31 /// Operation mode of the command line tool. This is set in args.c and read
33 extern enum operation_mode opt_mode;
35 /// File format to use when encoding or what format(s) to accept when
36 /// decoding. This is a global because it's needed also in suffix.c.
37 /// This is set in args.c.
38 extern enum format_type opt_format;
41 /// Set the integrity check type used when compressing
42 extern void coder_set_check(lzma_check check);
45 extern void coder_set_preset(size_t new_preset);
47 /// Enable extreme mode
48 extern void coder_set_extreme(void);
50 /// Add a filter to the custom filter chain
51 extern void coder_add_filter(lzma_vli id, void *options);
54 extern void coder_set_compression_settings(void);
56 /// Compress or decompress the given file
57 extern void coder_run(const char *filename);