summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.h
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-05-27 02:49:46 +0000
committerSterling Hughes <sterling@php.net>2001-05-27 02:49:46 +0000
commitea0f4078b5653cc6ce23c9c83d1d0e76bd7d963e (patch)
treedc149a9a71406cdd7fc26c923a24d4b5e8f8b09f /ext/zip/php_zip.h
parent3ceeb1ff40381c7f0793be55c3a5c7df76c986c1 (diff)
downloadphp-git-ea0f4078b5653cc6ce23c9c83d1d0e76bd7d963e.tar.gz
@ Renamed the ZZiplib extension to the Zip extension, function
@ names have also changed accordingly, functionality, has stayed @ constant. (Sterling)
Diffstat (limited to 'ext/zip/php_zip.h')
-rw-r--r--ext/zip/php_zip.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/ext/zip/php_zip.h b/ext/zip/php_zip.h
new file mode 100644
index 0000000000..71c65cf8c3
--- /dev/null
+++ b/ext/zip/php_zip.h
@@ -0,0 +1,66 @@
+/*
+ +----------------------------------------------------------------------+
+ | PHP version 4.0 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997-2001 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 2.02 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available at through the world-wide-web at |
+ | http://www.php.net/license/2_02.txt. |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Authors: Sterling Hughes <sterling@php.net> |
+ +----------------------------------------------------------------------+
+ */
+
+#ifndef PHP_ZIP_H
+#define PHP_ZIP_H
+
+#if HAVE_ZZIPLIB
+
+#include <zziplib.h>
+
+extern zend_module_entry zip_module_entry;
+#define phpext_zip_ptr &zip_module_entry
+
+#ifdef PHP_WIN32
+#define PHP_ZZIPLIB_API __declspec(dllexport)
+#else
+#define PHP_ZZIPLIB_API
+#endif
+
+PHP_MINIT_FUNCTION(zip);
+PHP_MINFO_FUNCTION(zip);
+
+PHP_FUNCTION(zip_opendir);
+PHP_FUNCTION(zip_readdir);
+PHP_FUNCTION(zip_closedir);
+PHP_FUNCTION(zip_entry_name);
+PHP_FUNCTION(zip_entry_compressedsize);
+PHP_FUNCTION(zip_entry_filesize);
+PHP_FUNCTION(zip_entry_compressionmethod);
+PHP_FUNCTION(zip_open);
+PHP_FUNCTION(zip_read);
+PHP_FUNCTION(zip_close);
+
+typedef struct {
+ ZZIP_FILE *fp;
+ ZZIP_DIRENT dirent;
+} php_zzip_dirent;
+
+#else
+#define phpext_zziplib_ptr NULL
+#endif
+
+#endif /* PHP_ZZIPLIB_H */
+
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */