- release 0.19.0
[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-2005, 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 {
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
55 #endif
56 #endif
57 #endif
58
59 /*
60 * Local variables:
61 * tab-width: 4
62 * c-basic-offset: 4
63 * End:
64 * vim600: noet sw=4 ts=4 fdm=marker
65 * vim<600: noet sw=4 ts=4
66 */
67