diff options
author | kientzle <kientzle@FreeBSD.org> | 2009-03-06 05:58:56 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2009-03-06 05:58:56 +0000 |
commit | a6d71699e11ca2aa4e0f92a369ac8071b9eb85c0 (patch) | |
tree | 5d87f6f3a950ec9ead6d49f3895b6b060a82f0b7 /lib/libarchive/archive.h | |
parent | 1c1c217183280235637a950efa5a836ddab91b71 (diff) | |
download | FreeBSD-src-a6d71699e11ca2aa4e0f92a369ac8071b9eb85c0.zip FreeBSD-src-a6d71699e11ca2aa4e0f92a369ac8071b9eb85c0.tar.gz |
Merge r491,493,500,507,510,530,543 from libarchive.googlecode.com:
This implements the new generic options framework that provides a way
to override format- and compression-specific parameters.
Diffstat (limited to 'lib/libarchive/archive.h')
-rw-r--r-- | lib/libarchive/archive.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/libarchive/archive.h b/lib/libarchive/archive.h index 72bd8a0..ad4b1af 100644 --- a/lib/libarchive/archive.h +++ b/lib/libarchive/archive.h @@ -384,6 +384,19 @@ __LA_DECL int archive_read_data_into_buffer(struct archive *, void *buffer, __LA_SSIZE_T len); __LA_DECL int archive_read_data_into_fd(struct archive *, int fd); +/* + * Set read options. + */ +/* Apply option string to the format only. */ +__LA_DECL int archive_read_set_format_options(struct archive *_a, + const char *s); +/* Apply option string to the filter only. */ +__LA_DECL int archive_read_set_filter_options(struct archive *_a, + const char *s); +/* Apply option string to both the format and the filter. */ +__LA_DECL int archive_read_set_options(struct archive *_a, + const char *s); + /*- * Convenience function to recreate the current entry (whose header * has just been read) on disk. @@ -552,6 +565,20 @@ __LA_DECL void archive_write_finish(struct archive *); __LA_DECL int archive_write_finish(struct archive *); #endif +/* + * Set write options. + */ +/* Apply option string to the format only. */ +__LA_DECL int archive_write_set_format_options(struct archive *_a, + const char *s); +/* Apply option string to the compressor only. */ +__LA_DECL int archive_write_set_compressor_options(struct archive *_a, + const char *s); +/* Apply option string to both the format and the compressor. */ +__LA_DECL int archive_write_set_options(struct archive *_a, + const char *s); + + /*- * To create objects on disk: * 1) Ask archive_write_disk_new for a new archive_write_disk object. |