build and file maintenance
[m6w6/ext-http] / php_http_property_proxy.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-2011, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_PROPERTY_PROXY_H
14 #define PHP_HTTP_PROPERTY_PROXY_H
15
16 typedef struct php_http_property_proxy {
17 zval *myself;
18 zval *object;
19 zval *member;
20 } php_http_property_proxy_t;
21
22 PHP_HTTP_API php_http_property_proxy_t *php_http_property_proxy_init(php_http_property_proxy_t *proxy, zval *object, zval *member TSRMLS_DC);
23 PHP_HTTP_API void php_http_property_proxy_dtor(php_http_property_proxy_t *proxy);
24 PHP_HTTP_API void php_http_property_proxy_free(php_http_property_proxy_t **proxy);
25
26 typedef struct php_http_property_proxy_object {
27 zend_object zo;
28 php_http_property_proxy_t *proxy;
29 } php_http_property_proxy_object_t;
30
31 extern zend_class_entry *php_http_property_proxy_class_entry;
32 extern zend_function_entry php_http_property_proxy_method_entry[];
33
34 extern zend_object_value php_http_property_proxy_object_new(zend_class_entry *ce TSRMLS_DC);
35 extern zend_object_value php_http_property_proxy_object_new_ex(zend_class_entry *ce, php_http_property_proxy_t *proxy, php_http_property_proxy_object_t **ptr TSRMLS_DC);
36 extern void php_http_property_proxy_object_free(void *object TSRMLS_DC);
37
38 PHP_METHOD(HttpPropertyProxy, __construct);
39
40 PHP_MINIT_FUNCTION(http_property_proxy);
41
42 #endif /* PHP_HTTP_PROPERTY_PROXY_H_ */
43
44 /*
45 * Local variables:
46 * tab-width: 4
47 * c-basic-offset: 4
48 * End:
49 * vim600: noet sw=4 ts=4 fdm=marker
50 * vim<600: noet sw=4 ts=4
51 */
52