diff options
author | Davey Shafik <me@daveyshafik.com> | 2015-10-02 09:31:10 +0200 |
---|---|---|
committer | Davey Shafik <me@daveyshafik.com> | 2016-06-27 01:17:32 -0700 |
commit | ad15e1ccdabc678103e356535919e829ba9a0281 (patch) | |
tree | f3154444c8a72c0ee34347809cb37ace004866be /ext/curl/php_curl.h | |
parent | d56d2f452baa717d18a25e1a3a69ef5f6e0ffaa0 (diff) | |
download | php-git-ad15e1ccdabc678103e356535919e829ba9a0281.tar.gz |
Implement curl server push
Diffstat (limited to 'ext/curl/php_curl.h')
-rw-r--r-- | ext/curl/php_curl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h index 523f8032f6..4d015f1525 100644 --- a/ext/curl/php_curl.h +++ b/ext/curl/php_curl.h @@ -66,6 +66,8 @@ extern int le_curl_multi_handle; #define le_curl_multi_handle_name "cURL Multi Handle" extern int le_curl_share_handle; #define le_curl_share_handle_name "cURL Share Handle" +//extern int le_curl_pushheaders; +//#define le_curl_pushheaders "cURL Push Headers" PHP_MINIT_FUNCTION(curl); PHP_MSHUTDOWN_FUNCTION(curl); @@ -146,7 +148,7 @@ typedef struct { zval func_name; zend_fcall_info_cache fci_cache; int method; -} php_curl_progress, php_curl_fnmatch; +} php_curl_progress, php_curl_fnmatch, php_curlm_server_push; typedef struct { php_curl_write *write; @@ -191,9 +193,14 @@ typedef struct { #define CURLOPT_SAFE_UPLOAD -1 typedef struct { + php_curlm_server_push *server_push; +} php_curlm_handlers; + +typedef struct { int still_running; CURLM *multi; zend_llist easyh; + php_curlm_handlers *handlers; struct { int no; } err; @@ -206,6 +213,7 @@ typedef struct { } err; } php_curlsh; +php_curl *alloc_curl_handle(); void _php_curl_cleanup_handle(php_curl *); void _php_curl_multi_cleanup_list(void *data); void _php_curl_verify_handlers(php_curl *ch, int reporterror); |