+--------------------------------------------------------------------+
*/
-#if PHP_HTTP_HAVE_CURL
+#ifndef PHP_HTTP_CLIENT_CURL_USER_H
+#define PHP_HTTP_CLIENT_CURL_USER_H
-PHP_HTTP_API zend_class_entry *php_http_client_curl_user_class_entry;
+#if PHP_HTTP_HAVE_LIBCURL
+
+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);
}
#endif
+#endif
+
/*
* Local variables:
* tab-width: 4