| OLD | NEW |
| 1 /////////////////////////////////////////////////////////////////////////////// | 1 /////////////////////////////////////////////////////////////////////////////// |
| 2 // | 2 // |
| 3 /// \file coder.h | 3 /// \file coder.h |
| 4 /// \brief Compresses or uncompresses a file | 4 /// \brief Compresses or uncompresses a file |
| 5 // | 5 // |
| 6 // Author: Lasse Collin | 6 // Author: Lasse Collin |
| 7 // | 7 // |
| 8 // This file has been put into the public domain. | 8 // This file has been put into the public domain. |
| 9 // You can do whatever you want with this file. | 9 // You can do whatever you want with this file. |
| 10 // | 10 // |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 /// If true, the compression settings are automatically adjusted down if | 40 /// If true, the compression settings are automatically adjusted down if |
| 41 /// they exceed the memory usage limit. | 41 /// they exceed the memory usage limit. |
| 42 extern bool opt_auto_adjust; | 42 extern bool opt_auto_adjust; |
| 43 | 43 |
| 44 | 44 |
| 45 /// Set the integrity check type used when compressing | 45 /// Set the integrity check type used when compressing |
| 46 extern void coder_set_check(lzma_check check); | 46 extern void coder_set_check(lzma_check check); |
| 47 | 47 |
| 48 /// Set preset number | 48 /// Set preset number |
| 49 extern void coder_set_preset(size_t new_preset); | 49 extern void coder_set_preset(uint32_t new_preset); |
| 50 | 50 |
| 51 /// Enable extreme mode | 51 /// Enable extreme mode |
| 52 extern void coder_set_extreme(void); | 52 extern void coder_set_extreme(void); |
| 53 | 53 |
| 54 /// Add a filter to the custom filter chain | 54 /// Add a filter to the custom filter chain |
| 55 extern void coder_add_filter(lzma_vli id, void *options); | 55 extern void coder_add_filter(lzma_vli id, void *options); |
| 56 | 56 |
| 57 /// | 57 /// |
| 58 extern void coder_set_compression_settings(void); | 58 extern void coder_set_compression_settings(void); |
| 59 | 59 |
| 60 /// Compress or decompress the given file | 60 /// Compress or decompress the given file |
| 61 extern void coder_run(const char *filename); | 61 extern void coder_run(const char *filename); |
| OLD | NEW |