|
| 1 | +/* |
| 2 | + +----------------------------------------------------------------------+ |
| 3 | + | PHP version 4.0 | |
| 4 | + +----------------------------------------------------------------------+ |
| 5 | + | Copyright (c) 1997-2001 The PHP Group | |
| 6 | + +----------------------------------------------------------------------+ |
| 7 | + | This source file is subject to version 2.02 of the PHP license, | |
| 8 | + | that is bundled with this package in the file LICENSE, and is | |
| 9 | + | available at through the world-wide-web at | |
| 10 | + | http://www.php.net/license/2_02.txt. | |
| 11 | + | If you did not receive a copy of the PHP license and are unable to | |
| 12 | + | obtain it through the world-wide-web, please send a note to | |
| 13 | + | license@php.net so we can mail you a copy immediately. | |
| 14 | + +----------------------------------------------------------------------+ |
| 15 | + | Authors: Sterling Hughes <sterling@php.net> | |
| 16 | + +----------------------------------------------------------------------+ |
| 17 | + */ |
| 18 | + |
| 19 | +#ifndef PHP_ZIP_H |
| 20 | +#define PHP_ZIP_H |
| 21 | + |
| 22 | +#if HAVE_ZZIPLIB |
| 23 | + |
| 24 | +#include <zziplib.h> |
| 25 | + |
| 26 | +extern zend_module_entry zip_module_entry; |
| 27 | +#define phpext_zip_ptr &zip_module_entry |
| 28 | + |
| 29 | +#ifdef PHP_WIN32 |
| 30 | +#define PHP_ZZIPLIB_API __declspec(dllexport) |
| 31 | +#else |
| 32 | +#define PHP_ZZIPLIB_API |
| 33 | +#endif |
| 34 | + |
| 35 | +PHP_MINIT_FUNCTION(zip); |
| 36 | +PHP_MINFO_FUNCTION(zip); |
| 37 | + |
| 38 | +PHP_FUNCTION(zip_opendir); |
| 39 | +PHP_FUNCTION(zip_readdir); |
| 40 | +PHP_FUNCTION(zip_closedir); |
| 41 | +PHP_FUNCTION(zip_entry_name); |
| 42 | +PHP_FUNCTION(zip_entry_compressedsize); |
| 43 | +PHP_FUNCTION(zip_entry_filesize); |
| 44 | +PHP_FUNCTION(zip_entry_compressionmethod); |
| 45 | +PHP_FUNCTION(zip_open); |
| 46 | +PHP_FUNCTION(zip_read); |
| 47 | +PHP_FUNCTION(zip_close); |
| 48 | + |
| 49 | +typedef struct { |
| 50 | + ZZIP_FILE *fp; |
| 51 | + ZZIP_DIRENT dirent; |
| 52 | +} php_zzip_dirent; |
| 53 | + |
| 54 | +#else |
| 55 | +#define phpext_zziplib_ptr NULL |
| 56 | +#endif |
| 57 | + |
| 58 | +#endif /* PHP_ZZIPLIB_H */ |
| 59 | + |
| 60 | + |
| 61 | +/* |
| 62 | + * Local variables: |
| 63 | + * tab-width: 4 |
| 64 | + * c-basic-offset: 4 |
| 65 | + * End: |
| 66 | + */ |
0 commit comments