- SPL doesn't install its headers
[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 #ifdef PHP_WIN32
21 # include <winsock2.h>
22 #endif
23
24 #include <curl/curl.h>
25
26 #include "php_http_request_pool_api.h"
27
28 typedef struct {
29 zend_object zo;
30 http_request_pool pool;
31 struct {
32 long pos;
33 } iterator;
34 } http_requestpool_object;
35
36 extern zend_class_entry *http_requestpool_object_ce;
37 extern zend_function_entry http_requestpool_object_fe[];
38
39 extern PHP_MINIT_FUNCTION(http_requestpool_object);
40
41 #define http_requestpool_object_new(ce) _http_requestpool_object_new(ce TSRMLS_CC)
42 extern zend_object_value _http_requestpool_object_new(zend_class_entry *ce TSRMLS_DC);
43 #define http_requestpool_object_free(o) _http_requestpool_object_free(o TSRMLS_CC)
44 extern void _http_requestpool_object_free(zend_object *object TSRMLS_DC);
45
46 PHP_METHOD(HttpRequestPool, __construct);
47 PHP_METHOD(HttpRequestPool, __destruct);
48 PHP_METHOD(HttpRequestPool, attach);
49 PHP_METHOD(HttpRequestPool, detach);
50 PHP_METHOD(HttpRequestPool, send);
51 PHP_METHOD(HttpRequestPool, reset);
52 PHP_METHOD(HttpRequestPool, socketPerform);
53 PHP_METHOD(HttpRequestPool, socketSelect);
54 PHP_METHOD(HttpRequestPool, valid);
55 PHP_METHOD(HttpRequestPool, current);
56 PHP_METHOD(HttpRequestPool, key);
57 PHP_METHOD(HttpRequestPool, next);
58 PHP_METHOD(HttpRequestPool, rewind);
59 PHP_METHOD(HttpRequestPool, count);
60 PHP_METHOD(HttpRequestPool, getAttachedRequests);
61 PHP_METHOD(HttpRequestPool, getFinishedRequests);
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