diff options
author | Martin Matuska <martin@matuska.org> | 2020-06-09 07:09:09 +0200 |
---|---|---|
committer | Martin Matuska <martin@matuska.org> | 2020-06-09 07:11:18 +0200 |
commit | c400064a1c63d122340d09d8ce3f671d4cf24b6e (patch) | |
tree | a08eafd225e3559badc9ba5b910f473026a4ac83 /libarchive/archive_read_filter.3 | |
parent | b3073af254a317e46ac058de47c05a55276ea14b (diff) | |
download | libarchive-c400064a1c63d122340d09d8ce3f671d4cf24b6e.tar.gz |
Introduce archive_read_support_filter_by_code()
Fixes #1258
Diffstat (limited to 'libarchive/archive_read_filter.3')
-rw-r--r-- | libarchive/archive_read_filter.3 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libarchive/archive_read_filter.3 b/libarchive/archive_read_filter.3 index 1ba5fcbd..4f5c3518 100644 --- a/libarchive/archive_read_filter.3 +++ b/libarchive/archive_read_filter.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 14, 2014 +.Dd June 9, 2020 .Dt ARCHIVE_READ_FILTER 3 .Os .Sh NAME @@ -50,6 +50,8 @@ Streaming Archive Library (libarchive, -larchive) .Ft int .Fn archive_read_support_filter_all "struct archive *" .Ft int +.Fn archive_read_support_filter_by_code "struct archive *" "int" +.Ft int .Fn archive_read_support_filter_bzip2 "struct archive *" .Ft int .Fn archive_read_support_filter_compress "struct archive *" @@ -116,6 +118,14 @@ Note that is always enabled by default. .It Fn archive_read_support_filter_all Enables all available decompression filters. +.It Fn archive_read_support_filter_by_code +Enables a single filter specified by the filter code. +This function does not work with +.Cm ARCHIVE_FILTER_PROGRAM . +Note: In statically-linked executables, this will cause +your program to include support for every filter. +If executable size is a concern, you may wish to avoid +using this function. .It Fn archive_read_support_filter_program Data is fed through the specified external program before being dearchived. Note that this disables automatic detection of the compression format, |