1 ///////////////////////////////////////////////////////////////////////////////
4 /// \brief Compresses or uncompresses a file
6 // Copyright (C) 2007 Lasse Collin
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Lesser General Public
10 // License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
18 ///////////////////////////////////////////////////////////////////////////////
34 // NOTE: The order of these is significant in suffix.c.
44 /// Operation mode of the command line tool. This is set in args.c and read
46 extern enum operation_mode opt_mode;
48 /// File format to use when encoding or what format(s) to accept when
49 /// decoding. This is a global because it's needed also in suffix.c.
50 /// This is set in args.c.
51 extern enum format_type opt_format;
54 /// Set the integrity check type used when compressing
55 extern void coder_set_check(lzma_check check);
58 extern void coder_set_preset(size_t new_preset);
60 /// Add a filter to the custom filter chain
61 extern void coder_add_filter(lzma_vli id, void *options);
64 extern void coder_set_compression_settings(void);
66 extern void process_init(void);
68 extern void process_file(const char *filename);