X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_object.h;h=24e5a181c568983344ca2952447d2e5073e3087b;hb=7cf7de66661e7e40a63c960f5df17fdeb362cb73;hp=7c88f209c2733b262a350090841cf0f6e75c0f73;hpb=0b83632b2b0a03eeca090f993259ccd95ab646fb;p=m6w6%2Fext-http diff --git a/php_http_object.h b/php_http_object.h index 7c88f20..24e5a18 100644 --- a/php_http_object.h +++ b/php_http_object.h @@ -6,29 +6,27 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2013, Michael Wallner | + | Copyright (c) 2004-2014, Michael Wallner | +--------------------------------------------------------------------+ */ #ifndef PHP_HTTP_OBJECT_H #define PHP_HTTP_OBJECT_H -typedef zend_object_value (*php_http_new_t)(zend_class_entry *ce, void *, void ** TSRMLS_DC); - -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); - typedef struct php_http_object { + void *intern; zend_object zo; - zend_object_value zv; } php_http_object_t; -PHP_HTTP_API zend_class_entry *php_http_object_class_entry; -PHP_MINIT_FUNCTION(http_object); +zend_object *php_http_object_new(zend_class_entry *ce TSRMLS_DC); +php_http_object_t *php_http_object_new_ex(zend_class_entry *ce, void *nothing); -zend_object_value php_http_object_new(zend_class_entry *ce TSRMLS_DC); -zend_object_value php_http_object_new_ex(zend_class_entry *ce, void *nothing, php_http_object_t **ptr TSRMLS_DC); +typedef void *(*php_http_new_t)(zend_class_entry *ce, void *); -PHP_HTTP_API zend_error_handling_t php_http_object_get_error_handling(zval *object TSRMLS_DC); +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); +ZEND_RESULT_CODE php_http_method_call(zval *object, const char *method_str, size_t method_len, int argc, zval argv[], zval *retval_ptr); + +PHP_MINIT_FUNCTION(http_object); #endif