2
+----------------------------------------------------------------------+
4
+----------------------------------------------------------------------+
5
| Copyright (c) 1997-2004 The PHP Group |
6
+----------------------------------------------------------------------+
7
| This source file is subject to version 3.0 of the PHP license, |
8
| that is bundled with this package in the file LICENSE, and is |
9
| available through the world-wide-web at the following url: |
10
| http://www.php.net/license/3_0.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
+----------------------------------------------------------------------+
19
/* $Id: php_bz2.h,v 1.5 2004/01/12 16:30:55 martin Exp $ */
26
extern zend_module_entry bz2_module_entry;
27
#define phpext_bz2_ptr &bz2_module_entry
32
PHP_MINIT_FUNCTION(bz2);
33
PHP_MSHUTDOWN_FUNCTION(bz2);
34
PHP_MINFO_FUNCTION(bz2);
37
PHP_FUNCTION(bzerrno);
38
PHP_FUNCTION(bzerrstr);
39
PHP_FUNCTION(bzerror);
40
PHP_FUNCTION(bzcompress);
41
PHP_FUNCTION(bzdecompress);
44
#define phpext_bz2_ptr NULL
48
# ifdef PHP_BZ2_EXPORTS
49
# define PHP_BZ2_API __declspec(dllexport)
50
# elif defined(COMPILE_DL_BZ2)
51
# define PHP_BZ2_API __declspec(dllimport)
53
# define PHP_BZ2_API /* nothing special */
59
PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
60
PHP_BZ2_API php_stream *_php_stream_bz2open_from_BZFILE(BZFILE *bz, char *mode, php_stream *innerstream STREAMS_DC TSRMLS_DC);
62
#define php_stream_bz2open_from_BZFILE(bz, mode, innerstream) _php_stream_bz2open_from_BZFILE((bz), (mode), (innerstream) STREAMS_CC TSRMLS_CC)
63
#define php_stream_bz2open(wrapper, path, mode, options, opened_path) _php_stream_bz2open((wrapper), (path), (mode), (options), (opened_path), NULL STREAMS_CC TSRMLS_CC)
65
extern php_stream_ops php_stream_bz2io_ops;
66
#define PHP_STREAM_IS_BZIP2 &php_stream_bz2io_ops