- fix request pool issues
[m6w6/ext-http] / php_http_requestpool_object.h
index 1ee1a9e2bc3f6e0b36eb7fa6cf286a4f7c1e9ea8..336fed27b24797d675e9a85f197f741bede4e01c 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <curl/curl.h>
 
-#include "php_http_request_api.h"
+#include "php_http_request_pool_api.h"
 
 typedef struct {
        zend_object zo;
@@ -42,14 +42,16 @@ extern void _http_requestpool_object_init(INIT_FUNC_ARGS);
 extern zend_object_value _http_requestpool_object_new(zend_class_entry *ce TSRMLS_DC);
 #define http_requestpool_object_free _http_requestpool_object_free
 extern void _http_requestpool_object_free(zend_object *object TSRMLS_DC);
-#define http_requestpool_object_ondestruct(p) _http_requestpool_object_ondestruct((p) TSRMLS_CC)
-extern void _http_requestpool_object_ondestruct(http_request_pool *pool TSRMLS_DC);
 
 PHP_METHOD(HttpRequestPool, __construct);
 PHP_METHOD(HttpRequestPool, __destruct);
 PHP_METHOD(HttpRequestPool, attach);
 PHP_METHOD(HttpRequestPool, detach);
 PHP_METHOD(HttpRequestPool, send);
+PHP_METHOD(HttpRequestPool, reset);
+PHP_METHOD(HttpRequestPool, socketSend);
+PHP_METHOD(HttpRequestPool, socketSelect);
+PHP_METHOD(HttpRequestPool, socketRead);
 
 #endif
 #endif