administrativa
[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-2014, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_OBJECT_H
14 #define PHP_HTTP_OBJECT_H
15
16 typedef struct php_http_object {
17 zend_object zo;
18 zend_object_value zv;
19 } php_http_object_t;
20
21 zend_object_value php_http_object_new(zend_class_entry *ce TSRMLS_DC);
22 zend_object_value php_http_object_new_ex(zend_class_entry *ce, void *nothing, php_http_object_t **ptr TSRMLS_DC);
23
24 typedef zend_object_value (*php_http_new_t)(zend_class_entry *ce, void *, void ** TSRMLS_DC);
25
26 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);
27
28 typedef struct php_http_method {
29 zend_fcall_info fci;
30 zend_fcall_info_cache fcc;
31 } php_http_object_method_t;
32
33 php_http_object_method_t *php_http_object_method_init(php_http_object_method_t *cb, zval *zobject, const char *method_str, size_t method_len TSRMLS_DC);
34 STATUS php_http_object_method_call(php_http_object_method_t *cb, zval *zobject, zval **retval, int argc, zval ***args TSRMLS_DC);
35 void php_http_object_method_dtor(php_http_object_method_t *cb);
36 void php_http_object_method_free(php_http_object_method_t **cb);
37
38 #endif
39
40
41 /*
42 * Local variables:
43 * tab-width: 4
44 * c-basic-offset: 4
45 * End:
46 * vim600: noet sw=4 ts=4 fdm=marker
47 * vim<600: noet sw=4 ts=4
48 */
49