X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_api.h;h=318b6967690d6a97dca0ec84607f903fda41d1c8;hp=2c2fc6b6282d322d76a1ad97427c133bdd2e651c;hb=16dba799dae126258bbb09e2f699d5d7954fac17;hpb=e577961fed4b5ae6a868adbeb420e0fec7aa8c6e diff --git a/php_http_request_api.h b/php_http_request_api.h index 2c2fc6b..318b696 100644 --- a/php_http_request_api.h +++ b/php_http_request_api.h @@ -50,6 +50,7 @@ typedef struct { } http_request; +#define http_request_new() _http_request_init_ex(NULL, NULL, 0, NULL ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC TSRMLS_CC) #define http_request_init(r) _http_request_init_ex((r), NULL, 0, NULL ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC TSRMLS_CC) #define http_request_init_ex(r, c, m, u) _http_request_init_ex((r), (c), (m), (u) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC TSRMLS_CC) PHP_HTTP_API http_request *_http_request_init_ex(http_request *request, CURL *ch, http_request_method meth, const char *url ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC TSRMLS_DC);