X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_inflatestream_object.h;fp=php_http_inflatestream_object.h;h=91da740a3af67eceb9c53e755dc7731666f49a9e;hp=0000000000000000000000000000000000000000;hb=b2e9ffe535660f5de2ec850ddc0dd6e99a34724d;hpb=8543c31ed65fb9cd3d92a109172d24dcc7acf70a diff --git a/php_http_inflatestream_object.h b/php_http_inflatestream_object.h new file mode 100644 index 0000000..91da740 --- /dev/null +++ b/php_http_inflatestream_object.h @@ -0,0 +1,52 @@ +/* + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2005, Michael Wallner | + +--------------------------------------------------------------------+ +*/ + +/* $Id$ */ + +#ifndef PHP_HTTP_INFLATESTREAM_OBJECT_H +#define PHP_HTTP_INFLATESTREAM_OBJECT_H +#if defined(ZEND_ENGINE_2) && defined(HTTP_HAVE_ZLIB) + +typedef struct { + zend_object zo; + http_encoding_stream *stream; +} http_inflatestream_object; + +extern zend_class_entry *http_inflatestream_object_ce; +extern zend_function_entry http_inflatestream_object_fe[]; + +extern PHP_MINIT_FUNCTION(http_inflatestream_object); + +#define http_inflatestream_object_new(ce) _http_inflatestream_object_new((ce) TSRMLS_CC) +extern zend_object_value _http_inflatestream_object_new(zend_class_entry *ce TSRMLS_DC); +#define http_inflatestream_object_new_ex(ce, s, ptr) _http_inflatestream_object_new_ex((ce), (s), (ptr) TSRMLS_CC) +extern zend_object_value _http_inflatestream_object_new_ex(zend_class_entry *ce, http_encoding_stream *s, http_inflatestream_object **ptr TSRMLS_DC); +#define http_inflatestream_object_clone(zobj) _http_inflatestream_object_clone_obj(zobj TSRMLS_CC) +extern zend_object_value _http_inflatestream_object_clone_obj(zval *object TSRMLS_DC); +#define http_inflatestream_object_free(o) _http_inflatestream_object_free((o) TSRMLS_CC) +extern void _http_inflatestream_object_free(zend_object *object TSRMLS_DC); + +PHP_METHOD(HttpInflateStream, update); +PHP_METHOD(HttpInflateStream, finish); + +#endif +#endif + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ +