These functions set the format that will be used for the archive.
The library can write a variety of common archive formats.
archive_write_set_format()
|
|
Sets the format based on the format code (see
archive.h
for the full list of format codes).
In particular, this can be used in conjunction with
archive_format()
to create a new archive with the same format as an existing archive.
|
archive_write_set_format_by_name()
|
|
Sets the corresponding format based on the common name.
|
archive_write_set_format_filter_by_ext()
archive_write_set_format_filter_by_ext_def()
Sets both filters and format based on the output filename.
Supported extensions: .7z, .zip, .jar, .cpio, .iso, .a, .ar, .tar, .tgz, .tar.gz, .tar.bz2, .tar.xz
|
archive_write_set_format_7zip()
archive_write_set_format_ar_bsd()
archive_write_set_format_ar_svr4()
archive_write_set_format_cpio()
archive_write_set_format_cpio_bin()
archive_write_set_format_cpio_newc()
archive_write_set_format_cpio_odc()
archive_write_set_format_cpio_pwb()
archive_write_set_format_gnutar()
archive_write_set_format_iso9660()
archive_write_set_format_mtree()
archive_write_set_format_mtree_classic()
archive_write_set_format_pax()
archive_write_set_format_pax_restricted()
archive_write_set_format_raw()
archive_write_set_format_shar()
archive_write_set_format_shar_dump()
archive_write_set_format_ustar()
archive_write_set_format_v7tar()
archive_write_set_format_warc()
archive_write_set_format_xar()
archive_write_set_format_zip()
Set the format as specified.
More details on the formats supported by libarchive can be found in the
libarchive-formats(5)
manual page.
|