ZIP_SOURCE

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
 

NAME

zip_source - zip data source structure  

LIBRARY

libzip (-lzip)  

SYNOPSIS

In zip.h Vt zip_source_t *zs ;  

DESCRIPTION

A Vt struct zip_source is a data source used by libzip(3) for adding or replacing file contents for a file in a zip archive. If the source supports seeking, it can also be used to open zip archives from. It is created by calling one of zip_source_buffer3, zip_source_buffer_create3, zip_source_file3, zip_source_file_create3, zip_source_filep3, zip_source_filep_create3, zip_source_function3, zip_source_function_create3, or zip_source_zip3. Vt zip_source_t is reference counted, and created with a reference count of 1. zip_open_from_source3, zip_file_add3, and zip_file_replace3 will decrement the reference count of the Vt zip_source_t when they are done using it, so zip_source_free3 only needs to be called when these functions return an error. Use zip_source_keep3 to increase the reference count, for example if you need the source after zip_close3.  

SEE ALSO

libzip(3), zip_source_buffer3, zip_source_file3, zip_source_filep3, zip_source_free3, zip_source_function3, zip_source_zip3  

AUTHORS

An -nosplit An Dieter Baron Aq Mt dillo@nih.at and An Thomas Klausner Aq Mt tk@giga.or.at


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
SEE ALSO
AUTHORS

This document was created by man2html, using the manual pages.
Time: 06:04:21 GMT, May 23, 2024