diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-04-03 05:34:36 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-04-03 05:34:36 +0000 |
commit | b356476feba52a0a45c8e89ebac5d6724a4e6d78 (patch) | |
tree | ee7ab4b960264dddb2ad2c445c0e861e145e0ca2 /lib/libarchive/archive.h.in | |
parent | ba7e53058343ca70fa1013a3af10139eac74e8c4 (diff) | |
download | FreeBSD-src-b356476feba52a0a45c8e89ebac5d6724a4e6d78.zip FreeBSD-src-b356476feba52a0a45c8e89ebac5d6724a4e6d78.tar.gz |
'ar' format support for libarchive, contributed by Kai Wang.
Diffstat (limited to 'lib/libarchive/archive.h.in')
-rw-r--r-- | lib/libarchive/archive.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libarchive/archive.h.in b/lib/libarchive/archive.h.in index 5282418..afaa40dd 100644 --- a/lib/libarchive/archive.h.in +++ b/lib/libarchive/archive.h.in @@ -177,6 +177,9 @@ typedef int archive_close_callback(struct archive *, void *_client_data); #define ARCHIVE_FORMAT_ISO9660_ROCKRIDGE (ARCHIVE_FORMAT_ISO9660 | 1) #define ARCHIVE_FORMAT_ZIP 0x50000 #define ARCHIVE_FORMAT_EMPTY 0x60000 +#define ARCHIVE_FORMAT_AR 0x70000 +#define ARCHIVE_FORMAT_AR_SVR4 (ARCHIVE_FORMAT_AR | 1) +#define ARCHIVE_FORMAT_AR_BSD (ARCHIVE_FORMAT_AR | 2) /*- * Basic outline for reading an archive: @@ -206,6 +209,7 @@ int archive_read_support_compression_gzip(struct archive *); int archive_read_support_compression_none(struct archive *); int archive_read_support_format_all(struct archive *); +int archive_read_support_format_ar(struct archive *); int archive_read_support_format_cpio(struct archive *); int archive_read_support_format_empty(struct archive *); int archive_read_support_format_gnutar(struct archive *); @@ -374,6 +378,8 @@ int archive_write_set_format(struct archive *, int format_code); int archive_write_set_format_by_name(struct archive *, const char *name); /* To minimize link pollution, use one or more of the following. */ +int archive_write_set_format_ar_bsd(struct archive *); +int archive_write_set_format_ar_svr4(struct archive *); int archive_write_set_format_cpio(struct archive *); /* TODO: int archive_write_set_format_old_tar(struct archive *); */ int archive_write_set_format_pax(struct archive *); |