fix problem when finishing a chunked encoding stream
[m6w6/ext-http] / php_http_object.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: http |
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-2010, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 /* $Id: http_api.c 300299 2010-06-09 06:23:16Z mike $ */
14
15 #ifndef PHP_HTTP_OBJECT_H
16 #define PHP_HTTP_OBJECT_H
17
18 typedef zend_object_value (*php_http_new_t)(zend_class_entry *ce, void *, void ** TSRMLS_DC);
19
20 extern STATUS php_http_new(zend_object_value *ov, zend_class_entry *ce, php_http_new_t create, zend_class_entry *parent_ce, void *intern_ptr, void **obj_ptr TSRMLS_DC);
21
22 typedef struct php_http_object {
23 zend_object zo;
24 } php_http_object_t;
25
26 extern zend_class_entry *php_http_object_class_entry;
27 extern zend_function_entry php_http_object_method_entry[];
28
29 extern PHP_MINIT_FUNCTION(http_object);
30
31 extern zend_object_value php_http_object_new(zend_class_entry *ce TSRMLS_DC);
32 extern zend_object_value php_http_object_new_ex(zend_class_entry *ce, void *nothing, php_http_object_t **ptr TSRMLS_DC);
33
34 PHP_HTTP_API zend_error_handling_t php_http_object_get_error_handling(zval *object TSRMLS_DC);
35
36 PHP_METHOD(HttpObject, factory);
37 PHP_METHOD(HttpObject, setErrorHandling);
38 PHP_METHOD(HttpObject, getErrorHandling);
39 PHP_METHOD(HttpObject, setDefaultErrorHandling);
40 PHP_METHOD(HttpObject, getDefaultErrorHandling);
41
42 #endif
43
44
45 /*
46 * Local variables:
47 * tab-width: 4
48 * c-basic-offset: 4
49 * End:
50 * vim600: noet sw=4 ts=4 fdm=marker
51 * vim<600: noet sw=4 ts=4
52 */
53