X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client.c;h=4d109bd0e313de840f262e72a6b7fc759180ecc6;hp=29da4c90ec4788b592e027742f59550a9bd437e7;hb=0ee6755121a35b2e7bcca536f19c8d34d2b9ba6b;hpb=3d8d07b22b295ce667e5b5fa1bee5bbd32250985 diff --git a/php_http_client.c b/php_http_client.c index 29da4c9..4d109bd 100644 --- a/php_http_client.c +++ b/php_http_client.c @@ -15,7 +15,7 @@ #include #include -PHP_HTTP_API php_http_client_t *php_http_client_init(php_http_client_t *h, php_http_client_ops_t *ops, php_http_resource_factory_t *rf, void *init_arg TSRMLS_DC) +PHP_HTTP_API php_http_client_t *php_http_client_init(php_http_client_t *h, php_http_client_ops_t *ops, php_resource_factory_t *rf, void *init_arg TSRMLS_DC) { php_http_client_t *free_h = NULL; @@ -28,7 +28,7 @@ PHP_HTTP_API php_http_client_t *php_http_client_init(php_http_client_t *h, php_h if (rf) { h->rf = rf; } else if (ops->rsrc) { - h->rf = php_http_resource_factory_init(NULL, h->ops->rsrc, h, NULL); + h->rf = php_resource_factory_init(NULL, h->ops->rsrc, h, NULL); } h->request.buffer = php_http_buffer_init(NULL); h->request.parser = php_http_message_parser_init(NULL TSRMLS_CC); @@ -59,7 +59,7 @@ PHP_HTTP_API void php_http_client_dtor(php_http_client_t *h) h->ops->dtor(h); } - php_http_resource_factory_free(&h->rf); + php_resource_factory_free(&h->rf); php_http_message_parser_free(&h->request.parser); php_http_message_free(&h->request.message); @@ -92,10 +92,10 @@ PHP_HTTP_API php_http_client_t *php_http_client_copy(php_http_client_t *from, ph to->ops = from->ops; if (from->rf) { - php_http_resource_factory_addref(from->rf); + php_resource_factory_addref(from->rf); to->rf = from->rf; } else if (to->ops->rsrc){ - to->rf = php_http_resource_factory_init(NULL, to->ops->rsrc, to, NULL); + to->rf = php_resource_factory_init(NULL, to->ops->rsrc, to, NULL); } to->request.buffer = php_http_buffer_init(NULL);