code cleanup
[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 zend_class_entry *php_http_curl_client_pool_get_class_entry(void);
21
22 zend_object_value php_http_curl_client_pool_object_new(zend_class_entry *ce TSRMLS_DC);
23 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);
24
25 #if PHP_HTTP_HAVE_EVENT
26 struct php_http_curl_globals {
27 void *event_base;
28 };
29
30 PHP_RINIT_FUNCTION(http_curl_client_pool);
31 #endif
32
33 PHP_MINIT_FUNCTION(http_curl_client_pool);
34
35 #endif /* PHP_HTTP_HAVE_CURL */
36 #endif /* PHP_HTTP_CURL_CLIENT_POOL_H */
37
38 /*
39 * Local variables:
40 * tab-width: 4
41 * c-basic-offset: 4
42 * End:
43 * vim600: noet sw=4 ts=4 fdm=marker
44 * vim<600: noet sw=4 ts=4
45 */
46