summaryrefslogtreecommitdiff
path: root/libarchive/archive.h
diff options
context:
space:
mode:
authorGrzegorz Antoniak <ga@anadoxin.org>2018-09-08 06:41:28 +0200
committerGrzegorz Antoniak <ga@anadoxin.org>2018-09-25 06:16:02 +0200
commit087319f7060842233e0a705654d855e77ec71ff7 (patch)
treec47f750afa5a9a5e9fbfb23456d55612058d7b18 /libarchive/archive.h
parent9a11404aa03b42eb2fc58cfc6d8d1f90c11e08d5 (diff)
downloadlibarchive-087319f7060842233e0a705654d855e77ec71ff7.tar.gz
Added support for extraction of RAR v5 archives
This is an initial implementation of a stream-oriented unpacker. Things that should work: - Extraction of any compression level (stored or compressed), file enumeration, skipping through files, - Support for any dictionary sizes, - CRC32 and BLAKE2sp checksums, - Solid archives, - Multi-volume archives (part001, part002, etc), - Solid multi-volume archives, - DELTA, x86 and ARM filter support: other filters are not used in version 5 of the format. Things that are missing from this implementation: - Encryption support, - NTFS ACL permission settings, - Parsing the Reed-Solomon recovery record.
Diffstat (limited to 'libarchive/archive.h')
-rw-r--r--libarchive/archive.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libarchive/archive.h b/libarchive/archive.h
index cd65cd28..438ce468 100644
--- a/libarchive/archive.h
+++ b/libarchive/archive.h
@@ -338,6 +338,7 @@ typedef const char *archive_passphrase_callback(struct archive *,
#define ARCHIVE_FORMAT_LHA 0xB0000
#define ARCHIVE_FORMAT_CAB 0xC0000
#define ARCHIVE_FORMAT_RAR 0xD0000
+#define ARCHIVE_FORMAT_RAR_V5 (ARCHIVE_FORMAT_RAR | 1)
#define ARCHIVE_FORMAT_7ZIP 0xE0000
#define ARCHIVE_FORMAT_WARC 0xF0000
@@ -449,6 +450,7 @@ __LA_DECL int archive_read_support_format_iso9660(struct archive *);
__LA_DECL int archive_read_support_format_lha(struct archive *);
__LA_DECL int archive_read_support_format_mtree(struct archive *);
__LA_DECL int archive_read_support_format_rar(struct archive *);
+__LA_DECL int archive_read_support_format_rar5(struct archive *);
__LA_DECL int archive_read_support_format_raw(struct archive *);
__LA_DECL int archive_read_support_format_tar(struct archive *);
__LA_DECL int archive_read_support_format_warc(struct archive *);