X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_curl.h;h=398c3ae39dc63a8d227e89fc579f14665d8c926b;hp=6e9cc1623053a888a905576013977729f3a15516;hb=14aec371d6123fbedbe13ca73b6a6d5768c635cb;hpb=7dc5de0b79846bfe33ca36a9eeb894ef2ecfdee1 diff --git a/php_http_curl.h b/php_http_curl.h index 6e9cc16..398c3ae 100644 --- a/php_http_curl.h +++ b/php_http_curl.h @@ -1,6 +1,24 @@ +/* + +--------------------------------------------------------------------+ + | 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 +#if PHP_HTTP_HAVE_CURL + +#include "php_http_request.h" +#include "php_http_request_pool.h" +#include "php_http_request_datashare.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); @@ -9,8 +27,8 @@ 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 { +#if PHP_HTTP_HAVE_EVENT +struct php_http_curl_globals { void *event_base; }; #endif @@ -22,4 +40,15 @@ extern zend_function_entry php_http_curl_method_entry[]; PHP_METHOD(HttpCURL, __construct); -#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 + */ +