summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_filter.3
diff options
context:
space:
mode:
authorMartin Matuska <martin@matuska.org>2020-06-09 07:09:09 +0200
committerMartin Matuska <martin@matuska.org>2020-06-09 07:11:18 +0200
commitc400064a1c63d122340d09d8ce3f671d4cf24b6e (patch)
treea08eafd225e3559badc9ba5b910f473026a4ac83 /libarchive/archive_read_filter.3
parentb3073af254a317e46ac058de47c05a55276ea14b (diff)
downloadlibarchive-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.312
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,