c0e5eb951882c7b41cc53d32de37deb1b73686ea
[m6w6/ext-http] / php_http_curl_client_pool.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: http |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2011, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_CURL_CLIENT_POOL_H
14 #define PHP_HTTP_CURL_CLIENT_POOL_H
15
16 #if PHP_HTTP_HAVE_CURL
17
18 PHP_HTTP_API php_http_client_pool_ops_t *php_http_curl_client_pool_get_ops(void);
19
20 extern zend_class_entry *php_http_curl_client_pool_class_entry;
21 extern zend_function_entry php_http_curl_client_pool_method_entry[];
22
23 extern zend_object_value php_http_curl_client_pool_object_new(zend_class_entry *ce TSRMLS_DC);
24 extern zend_object_value php_http_curl_client_pool_object_new_ex(zend_class_entry *ce, php_http_client_pool_t *p, php_http_client_pool_object_t **ptr TSRMLS_DC);
25
26 #if PHP_HTTP_HAVE_EVENT
27 struct php_http_curl_globals {
28 void *event_base;
29 };
30
31 PHP_RINIT_FUNCTION(http_curl_client_pool);
32 #endif
33
34 PHP_MINIT_FUNCTION(http_curl_client_pool);
35
36 #endif /* PHP_HTTP_HAVE_CURL */
37 #endif /* PHP_HTTP_CURL_CLIENT_POOL_H */
38
39 /*
40 * Local variables:
41 * tab-width: 4
42 * c-basic-offset: 4
43 * End:
44 * vim600: noet sw=4 ts=4 fdm=marker
45 * vim<600: noet sw=4 ts=4
46 */
47