X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_curl.h;h=ab8b63ceb9835ee57589d42126a1005e17d2c590;hp=bd1c61ab5f686c6d9f8f9ccc2cf4664aefb0f399;hb=046973e332c1475f9bf7717af9d33a75283deb37;hpb=8d05291f42b3b42159b3fe91492aa4862f3d4405;ds=inline diff --git a/php_http_curl.h b/php_http_curl.h index bd1c61a..ab8b63c 100644 --- a/php_http_curl.h +++ b/php_http_curl.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2011, Michael Wallner | + | Copyright (c) 2004-2014, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -15,28 +15,14 @@ #if PHP_HTTP_HAVE_CURL -PHP_HTTP_API php_http_request_ops_t *php_http_curl_get_request_ops(void); -PHP_HTTP_API php_http_request_pool_ops_t *php_http_curl_get_request_pool_ops(void); -PHP_HTTP_API php_http_request_datashare_ops_t *php_http_curl_get_request_datashare_ops(void); +#include +#define PHP_HTTP_CURL_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= (((x)<<16) + ((y)<<8) + (z))) -extern PHP_MINIT_FUNCTION(http_curl); -extern PHP_MSHUTDOWN_FUNCTION(http_curl); -extern PHP_RINIT_FUNCTION(http_curl); - -#if PHP_HTTP_HAVE_EVENT -struct php_http_curl_globals { - void *event_base; -}; -#endif - -extern zend_class_entry *php_http_curl_class_entry; -extern zend_function_entry php_http_curl_method_entry[]; - -#define php_http_curl_new php_http_object_new - -PHP_METHOD(HttpCURL, __construct); +PHP_MINIT_FUNCTION(http_curl); +PHP_MSHUTDOWN_FUNCTION(http_curl); #endif /* PHP_HTTP_HAVE_CURL */ + #endif /* PHP_HTTP_CURL_H */ /*