Publicize a handful of new functions and bump the version number
to indicate that this is synchronized with the recent libarchive 2.7.0 release.
This commit is contained in:
parent
621fee72b3
commit
3b75ab9db9
@ -118,13 +118,13 @@ extern "C" {
|
|||||||
* (ARCHIVE_API_VERSION * 1000000 + ARCHIVE_API_FEATURE * 1000)
|
* (ARCHIVE_API_VERSION * 1000000 + ARCHIVE_API_FEATURE * 1000)
|
||||||
* #endif
|
* #endif
|
||||||
*/
|
*/
|
||||||
#define ARCHIVE_VERSION_NUMBER 2006901
|
#define ARCHIVE_VERSION_NUMBER 2007000
|
||||||
__LA_DECL int archive_version_number(void);
|
__LA_DECL int archive_version_number(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Textual name/version of the library, useful for version displays.
|
* Textual name/version of the library, useful for version displays.
|
||||||
*/
|
*/
|
||||||
#define ARCHIVE_VERSION_STRING "libarchive 2.6.901a"
|
#define ARCHIVE_VERSION_STRING "libarchive 2.7.0"
|
||||||
__LA_DECL const char * archive_version_string(void);
|
__LA_DECL const char * archive_version_string(void);
|
||||||
|
|
||||||
#if ARCHIVE_VERSION_NUMBER < 3000000
|
#if ARCHIVE_VERSION_NUMBER < 3000000
|
||||||
@ -298,6 +298,7 @@ __LA_DECL int archive_read_support_compression_all(struct archive *);
|
|||||||
__LA_DECL int archive_read_support_compression_bzip2(struct archive *);
|
__LA_DECL int archive_read_support_compression_bzip2(struct archive *);
|
||||||
__LA_DECL int archive_read_support_compression_compress(struct archive *);
|
__LA_DECL int archive_read_support_compression_compress(struct archive *);
|
||||||
__LA_DECL int archive_read_support_compression_gzip(struct archive *);
|
__LA_DECL int archive_read_support_compression_gzip(struct archive *);
|
||||||
|
__LA_DECL int archive_read_support_compression_lzma(struct archive *);
|
||||||
__LA_DECL int archive_read_support_compression_none(struct archive *);
|
__LA_DECL int archive_read_support_compression_none(struct archive *);
|
||||||
__LA_DECL int archive_read_support_compression_program(struct archive *,
|
__LA_DECL int archive_read_support_compression_program(struct archive *,
|
||||||
const char *command);
|
const char *command);
|
||||||
@ -305,6 +306,8 @@ __LA_DECL int archive_read_support_compression_program_signature
|
|||||||
(struct archive *, const char *,
|
(struct archive *, const char *,
|
||||||
const void * /* match */, size_t);
|
const void * /* match */, size_t);
|
||||||
|
|
||||||
|
__LA_DECL int archive_read_support_compression_xz(struct archive *);
|
||||||
|
|
||||||
__LA_DECL int archive_read_support_format_all(struct archive *);
|
__LA_DECL int archive_read_support_format_all(struct archive *);
|
||||||
__LA_DECL int archive_read_support_format_ar(struct archive *);
|
__LA_DECL int archive_read_support_format_ar(struct archive *);
|
||||||
__LA_DECL int archive_read_support_format_cpio(struct archive *);
|
__LA_DECL int archive_read_support_format_cpio(struct archive *);
|
||||||
@ -352,6 +355,10 @@ __LA_DECL int archive_read_open_FILE(struct archive *, FILE *_file);
|
|||||||
__LA_DECL int archive_read_next_header(struct archive *,
|
__LA_DECL int archive_read_next_header(struct archive *,
|
||||||
struct archive_entry **);
|
struct archive_entry **);
|
||||||
|
|
||||||
|
/* Parses and returns next entry header using the archive_entry passed in */
|
||||||
|
__LA_DECL int archive_read_next_header2(struct archive *,
|
||||||
|
struct archive_entry *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Retrieve the byte offset in UNCOMPRESSED data where last-read
|
* Retrieve the byte offset in UNCOMPRESSED data where last-read
|
||||||
* header started.
|
* header started.
|
||||||
@ -499,9 +506,11 @@ __LA_DECL int archive_write_set_skip_file(struct archive *, dev_t, ino_t);
|
|||||||
__LA_DECL int archive_write_set_compression_bzip2(struct archive *);
|
__LA_DECL int archive_write_set_compression_bzip2(struct archive *);
|
||||||
__LA_DECL int archive_write_set_compression_compress(struct archive *);
|
__LA_DECL int archive_write_set_compression_compress(struct archive *);
|
||||||
__LA_DECL int archive_write_set_compression_gzip(struct archive *);
|
__LA_DECL int archive_write_set_compression_gzip(struct archive *);
|
||||||
|
__LA_DECL int archive_write_set_compression_lzma(struct archive *);
|
||||||
__LA_DECL int archive_write_set_compression_none(struct archive *);
|
__LA_DECL int archive_write_set_compression_none(struct archive *);
|
||||||
__LA_DECL int archive_write_set_compression_program(struct archive *,
|
__LA_DECL int archive_write_set_compression_program(struct archive *,
|
||||||
const char *cmd);
|
const char *cmd);
|
||||||
|
__LA_DECL int archive_write_set_compression_xz(struct archive *);
|
||||||
/* A convenience function to set the format based on the code or name. */
|
/* A convenience function to set the format based on the code or name. */
|
||||||
__LA_DECL int archive_write_set_format(struct archive *, int format_code);
|
__LA_DECL int archive_write_set_format(struct archive *, int format_code);
|
||||||
__LA_DECL int archive_write_set_format_by_name(struct archive *,
|
__LA_DECL int archive_write_set_format_by_name(struct archive *,
|
||||||
@ -584,10 +593,12 @@ __LA_DECL int archive_write_set_options(struct archive *_a,
|
|||||||
|
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
|
* ARCHIVE_WRITE_DISK API
|
||||||
|
*
|
||||||
* To create objects on disk:
|
* To create objects on disk:
|
||||||
* 1) Ask archive_write_disk_new for a new archive_write_disk object.
|
* 1) Ask archive_write_disk_new for a new archive_write_disk object.
|
||||||
* 2) Set any global properties. In particular, you should set
|
* 2) Set any global properties. In particular, you probably
|
||||||
* the compression and format to use.
|
* want to set the options.
|
||||||
* 3) For each entry:
|
* 3) For each entry:
|
||||||
* - construct an appropriate struct archive_entry structure
|
* - construct an appropriate struct archive_entry structure
|
||||||
* - archive_write_header to create the file/dir/etc on disk
|
* - archive_write_header to create the file/dir/etc on disk
|
||||||
@ -601,7 +612,8 @@ __LA_DECL struct archive *archive_write_disk_new(void);
|
|||||||
/* This file will not be overwritten. */
|
/* This file will not be overwritten. */
|
||||||
__LA_DECL int archive_write_disk_set_skip_file(struct archive *,
|
__LA_DECL int archive_write_disk_set_skip_file(struct archive *,
|
||||||
dev_t, ino_t);
|
dev_t, ino_t);
|
||||||
/* Set flags to control how the next item gets created. */
|
/* Set flags to control how the next item gets created.
|
||||||
|
* This accepts a bitmask of ARCHIVE_EXTRACT_XXX flags defined above. */
|
||||||
__LA_DECL int archive_write_disk_set_options(struct archive *,
|
__LA_DECL int archive_write_disk_set_options(struct archive *,
|
||||||
int flags);
|
int flags);
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user