X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_client.h;h=da53b4d717a744820b4e27129091fe849b100055;hb=7781f0396a87655af07765e762278ad0aef03401;hp=08743e69ebbaa9188d7a64da3c888bb1b217aa55;hpb=e1d5ca36e13696a2e87b618165669fc7c53709c1;p=m6w6%2Fext-http diff --git a/src/php_http_client.h b/src/php_http_client.h index 08743e6..da53b4d 100644 --- a/src/php_http_client.h +++ b/src/php_http_client.h @@ -35,6 +35,7 @@ typedef struct php_http_client_enqueue { zend_fcall_info fci; zend_fcall_info_cache fcc; } closure; + php_http_message_object_t *request_obj; /* supplemental to request */ } php_http_client_enqueue_t; typedef struct php_http_client *(*php_http_client_init_func_t)(struct php_http_client *p, void *init_arg); @@ -46,6 +47,7 @@ typedef int (*php_http_client_once_func_t)(struct php_http_client *p); typedef ZEND_RESULT_CODE (*php_http_client_wait_func_t)(struct php_http_client *p, struct timeval *custom_timeout); typedef ZEND_RESULT_CODE (*php_http_client_enqueue_func_t)(struct php_http_client *p, php_http_client_enqueue_t *enqueue); typedef ZEND_RESULT_CODE (*php_http_client_dequeue_func_t)(struct php_http_client *p, php_http_client_enqueue_t *enqueue); +typedef ZEND_RESULT_CODE (*php_http_client_requeue_func_t)(struct php_http_client *p, php_http_client_enqueue_t *enqueue); typedef ZEND_RESULT_CODE (*php_http_client_setopt_func_t)(struct php_http_client *p, php_http_client_setopt_opt_t opt, void *arg); typedef ZEND_RESULT_CODE (*php_http_client_getopt_func_t)(struct php_http_client *h, php_http_client_getopt_opt_t opt, void *arg, void **res); @@ -60,6 +62,7 @@ typedef struct php_http_client_ops { php_http_client_once_func_t once; php_http_client_enqueue_func_t enqueue; php_http_client_dequeue_func_t dequeue; + php_http_client_requeue_func_t requeue; php_http_client_setopt_func_t setopt; php_http_client_getopt_func_t getopt; } php_http_client_ops_t; @@ -117,6 +120,7 @@ typedef struct php_http_client { php_http_client_debug_callback_t func; void *arg; } debug; + unsigned depth; } callback; zend_llist requests;