2 +--------------------------------------------------------------------+
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-2006, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
15 #ifndef PHP_HTTP_REQUEST_POOL_API_H
16 #define PHP_HTTP_REQUEST_POOL_API_H
19 typedef struct _http_request_pool_t
{
26 #define http_request_pool_responsehandler _http_request_pool_responsehandler
27 extern void _http_request_pool_responsehandler(zval
**req
, CURL
*ch TSRMLS_DC
);
29 #define http_request_pool_try http_try
30 #define http_request_pool_catch() http_catch(HTTP_EX_CE(request_pool))
31 #define http_request_pool_final() http_final(HTTP_EX_CE(request_pool))
33 #define http_request_pool_init(p) _http_request_pool_init((p) TSRMLS_CC)
34 PHP_HTTP_API http_request_pool
*_http_request_pool_init(http_request_pool
*pool TSRMLS_DC
);
36 #define http_request_pool_attach(p, r) _http_request_pool_attach((p), (r) TSRMLS_CC)
37 PHP_HTTP_API STATUS
_http_request_pool_attach(http_request_pool
*pool
, zval
*request TSRMLS_DC
);
39 #define http_request_pool_detach(p, r) _http_request_pool_detach((p), (r) TSRMLS_CC)
40 PHP_HTTP_API STATUS
_http_request_pool_detach(http_request_pool
*pool
, zval
*request TSRMLS_DC
);
42 #define http_request_pool_detach_all(p) _http_request_pool_detach_all((p) TSRMLS_CC)
43 PHP_HTTP_API
void _http_request_pool_detach_all(http_request_pool
*pool TSRMLS_DC
);
45 #define http_request_pool_send(p) _http_request_pool_send((p) TSRMLS_CC)
46 PHP_HTTP_API STATUS
_http_request_pool_send(http_request_pool
*pool TSRMLS_DC
);
48 #define http_request_pool_select _http_request_pool_select
49 PHP_HTTP_API STATUS
_http_request_pool_select(http_request_pool
*pool
);
51 #define http_request_pool_perform(p) _http_request_pool_perform((p) TSRMLS_CC)
52 PHP_HTTP_API
int _http_request_pool_perform(http_request_pool
*pool TSRMLS_DC
);
54 #define http_request_pool_dtor(p) _http_request_pool_dtor((p) TSRMLS_CC)
55 PHP_HTTP_API
void _http_request_pool_dtor(http_request_pool
*pool TSRMLS_DC
);
65 * vim600: noet sw=4 ts=4 fdm=marker
66 * vim<600: noet sw=4 ts=4