~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/bz2/php_bz2.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  +----------------------------------------------------------------------+
 
3
  | PHP Version 5                                                        |
 
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
  +----------------------------------------------------------------------+
 
17
*/
 
18
 
 
19
/* $Id: php_bz2.h,v 1.5 2004/01/12 16:30:55 martin Exp $ */
 
20
 
 
21
#ifndef PHP_BZ2_H
 
22
#define PHP_BZ2_H
 
23
 
 
24
#if HAVE_BZ2
 
25
 
 
26
extern zend_module_entry bz2_module_entry;
 
27
#define phpext_bz2_ptr &bz2_module_entry
 
28
 
 
29
/* Bzip2 includes */
 
30
#include <bzlib.h>
 
31
 
 
32
PHP_MINIT_FUNCTION(bz2);
 
33
PHP_MSHUTDOWN_FUNCTION(bz2);
 
34
PHP_MINFO_FUNCTION(bz2);
 
35
PHP_FUNCTION(bzopen);
 
36
PHP_FUNCTION(bzread);
 
37
PHP_FUNCTION(bzerrno);
 
38
PHP_FUNCTION(bzerrstr);
 
39
PHP_FUNCTION(bzerror);
 
40
PHP_FUNCTION(bzcompress);
 
41
PHP_FUNCTION(bzdecompress);
 
42
 
 
43
#else
 
44
#define phpext_bz2_ptr NULL
 
45
#endif
 
46
 
 
47
#ifdef PHP_WIN32
 
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)
 
52
# else
 
53
#  define PHP_BZ2_API /* nothing special */
 
54
# endif
 
55
#else
 
56
# define PHP_BZ2_API
 
57
#endif
 
58
 
 
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);
 
61
 
 
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)
 
64
 
 
65
extern php_stream_ops php_stream_bz2io_ops;
 
66
#define PHP_STREAM_IS_BZIP2     &php_stream_bz2io_ops
 
67
 
 
68
#endif
 
69
 
 
70
 
 
71
/*
 
72
 * Local variables:
 
73
 * tab-width: 4
 
74
 * c-basic-offset: 4
 
75
 * End:
 
76
 */