flush WIP
[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 void *intern;
18 zend_object zo;
19 } php_http_object_t;
20
21 zend_object *php_http_object_new(zend_class_entry *ce TSRMLS_DC);
22 php_http_object_t *php_http_object_new_ex(zend_class_entry *ce, void *nothing);
23
24 typedef void *(*php_http_new_t)(zend_class_entry *ce, void *);
25
26 ZEND_RESULT_CODE php_http_new(void **obj_ptr, zend_class_entry *ce, php_http_new_t create, zend_class_entry *parent_ce, void *intern_ptr);
27 ZEND_RESULT_CODE php_http_method_call(zval *object, const char *method_str, size_t method_len, int argc, zval argv[], zval *retval_ptr);
28
29 #endif
30
31
32 /*
33 * Local variables:
34 * tab-width: 4
35 * c-basic-offset: 4
36 * End:
37 * vim600: noet sw=4 ts=4 fdm=marker
38 * vim<600: noet sw=4 ts=4
39 */
40