home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / .tmpphp_zip.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-03-24  |  2.0 KB  |  71 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP Version 4                                                        |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997-2003 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.    | Author: 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. #define PHP_ZZIPLIB_API
  30. #ifdef PHP_WIN32
  31. #undef PHP_ZZIPLIB_API
  32. #ifdef ZIP_EXPORTS
  33. #define PHP_ZZIPLIB_API __declspec(dllexport)
  34. #else
  35. #define PHP_ZZIPLIB_API __declspec(dllimport)
  36. #endif
  37. #endif
  38.  
  39. PHP_MINIT_FUNCTION(zip);
  40. PHP_MINFO_FUNCTION(zip);
  41.  
  42. PHP_FUNCTION(zip_open);
  43. PHP_FUNCTION(zip_read);
  44. PHP_FUNCTION(zip_close);
  45. PHP_FUNCTION(zip_entry_name);
  46. PHP_FUNCTION(zip_entry_compressedsize);
  47. PHP_FUNCTION(zip_entry_filesize);
  48. PHP_FUNCTION(zip_entry_compressionmethod);
  49. PHP_FUNCTION(zip_entry_open);
  50. PHP_FUNCTION(zip_entry_read);
  51. PHP_FUNCTION(zip_entry_close);
  52.  
  53. typedef struct {
  54.     ZZIP_FILE   *fp;
  55.     ZZIP_DIRENT  dirent;
  56. } php_zzip_dirent;
  57.  
  58. #else
  59. #define phpext_zziplib_ptr NULL
  60. #endif
  61.  
  62. #endif    /* PHP_ZZIPLIB_H */
  63.  
  64.  
  65. /*
  66.  * Local variables:
  67.  * tab-width: 4
  68.  * c-basic-offset: 4
  69.  * End:
  70.  */
  71.