2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2006, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
15 #ifndef PHP_HTTP_DEFLATESTREAM_OBJECT_H
16 #define PHP_HTTP_DEFLATESTREAM_OBJECT_H
17 #if defined(ZEND_ENGINE_2) && defined(HTTP_HAVE_ZLIB)
21 http_encoding_stream
*stream
;
22 } http_deflatestream_object
;
24 extern zend_class_entry
*http_deflatestream_object_ce
;
25 extern zend_function_entry http_deflatestream_object_fe
[];
27 extern PHP_MINIT_FUNCTION(http_deflatestream_object
);
29 #define http_deflatestream_object_new(ce) _http_deflatestream_object_new((ce) TSRMLS_CC)
30 extern zend_object_value
_http_deflatestream_object_new(zend_class_entry
*ce TSRMLS_DC
);
31 #define http_deflatestream_object_new_ex(ce, s, ptr) _http_deflatestream_object_new_ex((ce), (s), (ptr) TSRMLS_CC)
32 extern zend_object_value
_http_deflatestream_object_new_ex(zend_class_entry
*ce
, http_encoding_stream
*s
, http_deflatestream_object
**ptr TSRMLS_DC
);
33 #define http_deflatestream_object_clone(zobj) _http_deflatestream_object_clone_obj(zobj TSRMLS_CC)
34 extern zend_object_value
_http_deflatestream_object_clone_obj(zval
*object TSRMLS_DC
);
35 #define http_deflatestream_object_free(o) _http_deflatestream_object_free((o) TSRMLS_CC)
36 extern void _http_deflatestream_object_free(zend_object
*object TSRMLS_DC
);
38 PHP_METHOD(HttpDeflateStream
, __construct
);
39 PHP_METHOD(HttpDeflateStream
, update
);
40 PHP_METHOD(HttpDeflateStream
, flush
);
41 PHP_METHOD(HttpDeflateStream
, finish
);
51 * vim600: noet sw=4 ts=4 fdm=marker
52 * vim<600: noet sw=4 ts=4