aboutsummaryrefslogtreecommitdiff
path: root/src/xz/message.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-05-16 18:42:22 +0300
committerLasse Collin <lasse.collin@tukaani.org>2010-05-16 18:42:22 +0300
commitb6377fc990f9b8651149cae0fecb8b9c5904e26d (patch)
treea3671b43efa3119d2a978c6acf270f7dad315e27 /src/xz/message.h
parentOmit lzma_restrict from the API headers. (diff)
downloadxz-b6377fc990f9b8651149cae0fecb8b9c5904e26d.tar.xz
Split message_filters().
message_filters_to_str() converts the filter chain to a string. message_filters_show() replaces the original message_filters(). uint32_to_optstr() was also added to show the dictionary size in nicer format when possible.
Diffstat (limited to '')
-rw-r--r--src/xz/message.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/xz/message.h b/src/xz/message.h
index 7d637dfe..8f011874 100644
--- a/src/xz/message.h
+++ b/src/xz/message.h
@@ -86,8 +86,20 @@ extern const char *message_strm(lzma_ret code);
extern void message_mem_needed(enum message_verbosity v, uint64_t memusage);
+/// \brief Get the filter chain as a string
+///
+/// \param filters Pointer to the filter chain
+/// \param all_known If true, all filter options are printed.
+/// If false, only the options that get stored
+/// into .xz headers are printed.
+///
+/// \return Pointer to a statically allocated buffer.
+extern const char *message_filters_get(
+ const lzma_filter *filters, bool all_known);
+
+
/// Print the filter chain.
-extern void message_filters(
+extern void message_filters_show(
enum message_verbosity v, const lzma_filter *filters);