add current state of refactoring
[m6w6/ext-http] / php_http_client_pool_curl.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_CLIENT_POOL_CURL_H
14 #define PHP_HTTP_CLIENT_POOL_CURL_H
15
16 #if PHP_HTTP_HAVE_CURL
17
18 PHP_HTTP_API php_http_client_pool_ops_t *php_http_client_pool_curl_get_ops(void);
19
20 extern zend_object_value php_http_client_pool_curl_object_new(zend_class_entry *ce TSRMLS_DC);
21 extern zend_object_value php_http_client_pool_curl_object_new_ex(zend_class_entry *ce, php_http_client_pool_t *p, php_http_client_pool_object_t **ptr TSRMLS_DC);
22
23 #if PHP_HTTP_HAVE_EVENT
24 struct php_http_curl_globals {
25 void *event_base;
26 };
27
28 PHP_RINIT_FUNCTION(http_client_pool_curl);
29 #endif
30
31 PHP_MINIT_FUNCTION(http_client_pool_curl);
32
33 #endif /* PHP_HTTP_HAVE_CURL */
34 #endif /* PHP_HTTP_CLIENT_POOL_CURL_H */
35
36 /*
37 * Local variables:
38 * tab-width: 4
39 * c-basic-offset: 4
40 * End:
41 * vim600: noet sw=4 ts=4 fdm=marker
42 * vim<600: noet sw=4 ts=4
43 */
44