- Fixed build on php-trunk
[m6w6/ext-http] / php_http_requestpool_object.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-2010, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 /* $Id$ */
14
15 #ifndef PHP_HTTP_REQUESTPOOL_OBJECT_H
16 #define PHP_HTTP_REQUESTPOOL_OBJECT_H
17 #ifdef HTTP_HAVE_CURL
18 #ifdef ZEND_ENGINE_2
19
20 typedef struct _http_requestpool_object_t {
21 zend_object zo;
22 http_request_pool pool;
23 struct {
24 long pos;
25 } iterator;
26 } http_requestpool_object;
27
28 extern zend_class_entry *http_requestpool_object_ce;
29 extern zend_function_entry http_requestpool_object_fe[];
30
31 extern PHP_MINIT_FUNCTION(http_requestpool_object);
32
33 #define http_requestpool_object_new(ce) _http_requestpool_object_new(ce TSRMLS_CC)
34 extern zend_object_value _http_requestpool_object_new(zend_class_entry *ce TSRMLS_DC);
35 #define http_requestpool_object_free(o) _http_requestpool_object_free(o TSRMLS_CC)
36 extern void _http_requestpool_object_free(zend_object *object TSRMLS_DC);
37
38 PHP_METHOD(HttpRequestPool, __construct);
39 PHP_METHOD(HttpRequestPool, __destruct);
40 PHP_METHOD(HttpRequestPool, attach);
41 PHP_METHOD(HttpRequestPool, detach);
42 PHP_METHOD(HttpRequestPool, send);
43 PHP_METHOD(HttpRequestPool, reset);
44 PHP_METHOD(HttpRequestPool, socketPerform);
45 PHP_METHOD(HttpRequestPool, socketSelect);
46 PHP_METHOD(HttpRequestPool, valid);
47 PHP_METHOD(HttpRequestPool, current);
48 PHP_METHOD(HttpRequestPool, key);
49 PHP_METHOD(HttpRequestPool, next);
50 PHP_METHOD(HttpRequestPool, rewind);
51 PHP_METHOD(HttpRequestPool, count);
52 PHP_METHOD(HttpRequestPool, getAttachedRequests);
53 PHP_METHOD(HttpRequestPool, getFinishedRequests);
54 PHP_METHOD(HttpRequestPool, enablePipelining);
55 PHP_METHOD(HttpRequestPool, enableEvents);
56
57 #endif
58 #endif
59 #endif
60
61 /*
62 * Local variables:
63 * tab-width: 4
64 * c-basic-offset: 4
65 * End:
66 * vim600: noet sw=4 ts=4 fdm=marker
67 * vim<600: noet sw=4 ts=4
68 */
69