aboutsummaryrefslogtreecommitdiff
path: root/src/xz/coder.h
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-01-06 00:02:29 +0800
committerJia Tan <jiat0218@gmail.com>2023-07-17 23:34:55 +0800
commit9ded880a0221f4d1256845fc4ab957ffd377c760 (patch)
tree29c2b360d4cd4156ef73d40dcbab00dc5a76a32b /src/xz/coder.h
parentTests: Improve feature testing for skipping. (diff)
downloadxz-9ded880a0221f4d1256845fc4ab957ffd377c760.tar.xz
xz: Add --filters option to CLI.
The --filters option uses the new lzma_str_to_filters() function to convert a string into a full filter chain. Using this option will reset all previous filters set by --preset, --[filter], or --filters.
Diffstat (limited to '')
-rw-r--r--src/xz/coder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xz/coder.h b/src/xz/coder.h
index b4f43a2b..997d2586 100644
--- a/src/xz/coder.h
+++ b/src/xz/coder.h
@@ -77,3 +77,6 @@ extern void coder_run(const char *filename);
/// Free the memory allocated for the coder and kill the worker threads.
extern void coder_free(void);
#endif
+
+/// Create filter chain from string
+extern void coder_add_filters_from_str(const char *filter_str);