aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_read.c')
-rw-r--r--libarchive/archive_read.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libarchive/archive_read.c b/libarchive/archive_read.c
index 0e56e76e7315..de964f253284 100644
--- a/libarchive/archive_read.c
+++ b/libarchive/archive_read.c
@@ -611,6 +611,15 @@ choose_filters(struct archive_read *a)
return (ARCHIVE_FATAL);
}
+int
+__archive_read_header(struct archive_read *a, struct archive_entry *entry)
+{
+ if (a->filter->read_header)
+ return a->filter->read_header(a->filter, entry);
+ else
+ return (ARCHIVE_OK);
+}
+
/*
* Read header of next entry.
*/