names changing )
[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-2013, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_OBJECT_H
14 #define PHP_HTTP_OBJECT_H
15
16 typedef zend_object_value (*php_http_new_t)(zend_class_entry *ce, void *, void ** TSRMLS_DC);
17
18 PHP_HTTP_API 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);
19
20 typedef struct php_http_object {
21 zend_object zo;
22 zend_object_value zv;
23 } php_http_object_t;
24
25 PHP_HTTP_API zend_class_entry *php_http_object_class_entry;
26 PHP_MINIT_FUNCTION(http_object);
27
28 zend_object_value php_http_object_new(zend_class_entry *ce TSRMLS_DC);
29 zend_object_value php_http_object_new_ex(zend_class_entry *ce, void *nothing, php_http_object_t **ptr TSRMLS_DC);
30
31 PHP_HTTP_API zend_error_handling_t php_http_object_get_error_handling(zval *object TSRMLS_DC);
32
33 #endif
34
35
36 /*
37 * Local variables:
38 * tab-width: 4
39 * c-basic-offset: 4
40 * End:
41 * vim600: noet sw=4 ts=4 fdm=marker
42 * vim<600: noet sw=4 ts=4
43 */
44