X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_client_curl_user.h;h=39364be7bc8a6ac8961882f28827c083253d7e1b;hb=refs%2Ftags%2FRELEASE_3_1_0_BETA2;hp=e731f41e588d293041e062b755654e80836813fe;hpb=88362013f6230e939a14658d9123dc984f5807c6;p=m6w6%2Fext-http diff --git a/src/php_http_client_curl_user.h b/src/php_http_client_curl_user.h index e731f41..39364be 100644 --- a/src/php_http_client_curl_user.h +++ b/src/php_http_client_curl_user.h @@ -10,9 +10,23 @@ +--------------------------------------------------------------------+ */ +#ifndef PHP_HTTP_CLIENT_CURL_USER_H +#define PHP_HTTP_CLIENT_CURL_USER_H + #if PHP_HTTP_HAVE_CURL -PHP_HTTP_API zend_class_entry *php_http_client_curl_user_class_entry; +typedef struct php_http_client_curl_user_context { + php_http_client_t *client; + zval user; + zend_function closure; + php_http_object_method_t timer; + php_http_object_method_t socket; + php_http_object_method_t once; + php_http_object_method_t wait; + php_http_object_method_t send; +} php_http_client_curl_user_context_t; + +PHP_HTTP_API zend_class_entry *php_http_client_curl_user_get_class_entry(); PHP_HTTP_API php_http_client_curl_ops_t *php_http_client_curl_user_ops_get(); PHP_MINIT_FUNCTION(http_client_curl_user); @@ -79,6 +93,8 @@ interface http\Client\Curl\User } #endif +#endif + /* * Local variables: * tab-width: 4