Submit
Path:
~
/
/
usr
/
src
/
debug
/
php-5.6.40
/
ext
/
zip
/
lib
/
File Content:
zip_get_compression_implementation.c
/* zip_get_compression_implementation.c -- get compression implementation Copyright (C) 2009 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of the authors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "zipint.h" zip_compression_implementation _zip_get_compression_implementation(zip_int32_t cm) { if (cm == ZIP_CM_DEFLATE || ZIP_CM_IS_DEFAULT(cm)) return zip_source_deflate; return NULL; }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
mkstemp.c
3789 bytes
0644
zip.h
15073 bytes
0644
zip_add.c
2086 bytes
0644
zip_add_dir.c
1859 bytes
0644
zip_add_entry.c
2316 bytes
0644
zip_close.c
15798 bytes
0644
zip_delete.c
2110 bytes
0644
zip_dir_add.c
2792 bytes
0644
zip_dirent.c
24572 bytes
0644
zip_discard.c
2439 bytes
0644
zip_entry.c
1934 bytes
0644
zip_err_str.c
1315 bytes
0644
zip_error.c
2722 bytes
0644
zip_error_clear.c
1764 bytes
0644
zip_error_get.c
1756 bytes
0644
zip_error_get_sys_type.c
1803 bytes
0644
zip_error_strerror.c
2556 bytes
0644
zip_error_to_str.c
2235 bytes
0644
zip_extra_field.c
8427 bytes
0644
zip_extra_field_api.c
9105 bytes
0644
zip_fclose.c
2191 bytes
0644
zip_fdopen.c
2384 bytes
0644
zip_file_add.c
2213 bytes
0644
zip_file_error_clear.c
1784 bytes
0644
zip_file_error_get.c
1776 bytes
0644
zip_file_get_comment.c
2161 bytes
0644
zip_file_get_external_attributes.c
2085 bytes
0644
zip_file_get_offset.c
2518 bytes
0644
zip_file_rename.c
2437 bytes
0644
zip_file_replace.c
3620 bytes
0644
zip_file_set_comment.c
3317 bytes
0644
zip_file_set_external_attributes.c
3123 bytes
0644
zip_file_strerror.c
1788 bytes
0644
zip_filerange_crc.c
2237 bytes
0644
zip_fopen.c
1940 bytes
0644
zip_fopen_encrypted.c
1969 bytes
0644
zip_fopen_index.c
1919 bytes
0644
zip_fopen_index_encrypted.c
3043 bytes
0644
zip_fread.c
2115 bytes
0644
zip_get_archive_comment.c
2154 bytes
0644
zip_get_archive_flag.c
1868 bytes
0644
zip_get_compression_implementation.c
1864 bytes
0644
zip_get_encryption_implementation.c
1839 bytes
0644
zip_get_file_comment.c
1969 bytes
0644
zip_get_name.c
2197 bytes
0644
zip_get_num_entries.c
1978 bytes
0644
zip_get_num_files.c
1848 bytes
0644
zip_memdup.c
1978 bytes
0644
zip_name_locate.c
2662 bytes
0644
zip_new.c
2386 bytes
0644
zip_open.c
19063 bytes
0644
zip_rename.c
1837 bytes
0644
zip_replace.c
1838 bytes
0644
zip_set_archive_comment.c
2700 bytes
0644
zip_set_archive_flag.c
2254 bytes
0644
zip_set_default_password.c
2092 bytes
0644
zip_set_file_comment.c
2022 bytes
0644
zip_set_file_compression.c
2964 bytes
0644
zip_set_name.c
3607 bytes
0644
zip_source_buffer.c
3898 bytes
0644
zip_source_close.c
1960 bytes
0644
zip_source_crc.c
4332 bytes
0644
zip_source_deflate.c
8855 bytes
0644
zip_source_error.c
2448 bytes
0644
zip_source_file.c
2036 bytes
0644
zip_source_filep.c
6041 bytes
0644
zip_source_free.c
2015 bytes
0644
zip_source_function.c
2350 bytes
0644
zip_source_layered.c
1998 bytes
0644
zip_source_open.c
2342 bytes
0644
zip_source_pkware.c
5796 bytes
0644
zip_source_pop.c
2071 bytes
0644
zip_source_read.c
2223 bytes
0644
zip_source_stat.c
2308 bytes
0644
zip_source_window.c
3769 bytes
0644
zip_source_zip.c
2209 bytes
0644
zip_source_zip_new.c
5442 bytes
0644
zip_stat.c
1912 bytes
0644
zip_stat_index.c
2905 bytes
0644
zip_stat_init.c
1948 bytes
0644
zip_strerror.c
1768 bytes
0644
zip_string.c
4768 bytes
0644
zip_unchange.c
2442 bytes
0644
zip_unchange_all.c
1911 bytes
0644
zip_unchange_archive.c
1931 bytes
0644
zip_unchange_data.c
2095 bytes
0644
zip_utf-8.c
7828 bytes
0644
zipconf.h
3662 bytes
0644
zipint.h
18632 bytes
0644
N4ST4R_ID | Naxtarrr