X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_pool_api.h;h=19d9eb858378f20b0caf35bacabe4b578104025a;hp=d1ab0b3d1ce4b26087ebc1fd9a49bd6c75f09a88;hb=ebf03950ffaea849b931adf83b6c20ac9fb7ef33;hpb=edc84b40eb2c5be04492fa98fec5833a030782eb diff --git a/php_http_request_pool_api.h b/php_http_request_pool_api.h index d1ab0b3..19d9eb8 100644 --- a/php_http_request_pool_api.h +++ b/php_http_request_pool_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -16,18 +16,19 @@ #define PHP_HTTP_REQUEST_POOL_API_H #ifdef HTTP_HAVE_CURL -typedef struct { +typedef struct _http_request_pool_t { CURLM *ch; zend_llist finished; zend_llist handles; - zend_llist bodies; int unfinished; } http_request_pool; #define http_request_pool_responsehandler _http_request_pool_responsehandler extern void _http_request_pool_responsehandler(zval **req, CURL *ch TSRMLS_DC); -#define http_request_pool_requesthandler(r, b) _http_request_pool_requesthandler((r), (b) TSRMLS_CC) -extern STATUS _http_request_pool_requesthandler(zval *request, http_request_body *body TSRMLS_DC); + +#define http_request_pool_try http_try +#define http_request_pool_catch() http_catch(HTTP_EX_CE(request_pool)) +#define http_request_pool_final() http_final(HTTP_EX_CE(request_pool)) #define http_request_pool_init(p) _http_request_pool_init((p) TSRMLS_CC) PHP_HTTP_API http_request_pool *_http_request_pool_init(http_request_pool *pool TSRMLS_DC);