- unset the time condition option in curl properly if we unset the lastmodified option
[m6w6/ext-http] / php_http_requestpool_object.h
1 /*
2 +----------------------------------------------------------------------+
3 | PECL :: http |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.0 of the PHP license, that |
6 | is bundled with this package in the file LICENSE, and is available |
7 | through the world-wide-web at http://www.php.net/license/3_0.txt. |
8 | If you did not receive a copy of the PHP license and are unable to |
9 | obtain it through the world-wide-web, please send a note to |
10 | license@php.net so we can mail you a copy immediately. |
11 +----------------------------------------------------------------------+
12 | Copyright (c) 2004-2005 Michael Wallner <mike@php.net> |
13 +----------------------------------------------------------------------+
14 */
15
16 /* $Id$ */
17
18 #ifndef PHP_HTTP_REQUESTPOOL_OBJECT_H
19 #define PHP_HTTP_REQUESTPOOL_OBJECT_H
20 #ifdef HTTP_HAVE_CURL
21 #ifdef ZEND_ENGINE_2
22
23 #ifdef PHP_WIN32
24 # include <winsock2.h>
25 #endif
26
27 #include <curl/curl.h>
28
29 #include "php_http_request_pool_api.h"
30
31 typedef struct {
32 zend_object zo;
33 http_request_pool pool;
34 struct {
35 long pos;
36 } iterator;
37 } http_requestpool_object;
38
39 extern zend_class_entry *http_requestpool_object_ce;
40 extern zend_function_entry http_requestpool_object_fe[];
41
42 extern PHP_MINIT_FUNCTION(http_requestpool_object);
43
44 #define http_requestpool_object_new _http_requestpool_object_new
45 extern zend_object_value _http_requestpool_object_new(zend_class_entry *ce TSRMLS_DC);
46 #define http_requestpool_object_free _http_requestpool_object_free
47 extern void _http_requestpool_object_free(zend_object *object TSRMLS_DC);
48
49 PHP_METHOD(HttpRequestPool, __construct);
50 PHP_METHOD(HttpRequestPool, __destruct);
51 PHP_METHOD(HttpRequestPool, attach);
52 PHP_METHOD(HttpRequestPool, detach);
53 PHP_METHOD(HttpRequestPool, send);
54 PHP_METHOD(HttpRequestPool, reset);
55 PHP_METHOD(HttpRequestPool, socketPerform);
56 PHP_METHOD(HttpRequestPool, socketSelect);
57 PHP_METHOD(HttpRequestPool, valid);
58 PHP_METHOD(HttpRequestPool, current);
59 PHP_METHOD(HttpRequestPool, key);
60 PHP_METHOD(HttpRequestPool, next);
61 PHP_METHOD(HttpRequestPool, rewind);
62
63 #endif
64 #endif
65 #endif
66
67 /*
68 * Local variables:
69 * tab-width: 4
70 * c-basic-offset: 4
71 * End:
72 * vim600: noet sw=4 ts=4 fdm=marker
73 * vim<600: noet sw=4 ts=4
74 */
75