X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_curl.h;h=709ba2272e36ec06191e6cdbc178bf90d6077ab2;hb=759c822dcd99fdf733399a5ed92dbea382ddc474;hp=89f1948a11ea0c6d07bc23a1e49f2e3fd92f2dda;hpb=df06e2dbf48a3b0d96f2c62071c1b5fc907a98d0;p=m6w6%2Fext-http diff --git a/php_http_curl.h b/php_http_curl.h index 89f1948..709ba22 100644 --- a/php_http_curl.h +++ b/php_http_curl.h @@ -1,18 +1,36 @@ +/* + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2011, Michael Wallner | + +--------------------------------------------------------------------+ +*/ + #ifndef PHP_HTTP_CURL_H #define PHP_HTTP_CURL_H -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); +#if PHP_HTTP_HAVE_CURL + +#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); -#ifdef PHP_HTTP_HAVE_EVENT -struct php_http_request_pool_globals { - void *event_base; -}; -#endif +#endif /* PHP_HTTP_HAVE_CURL */ + +#endif /* PHP_HTTP_CURL_H */ + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ -#endif