X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_api.h;h=6841938edee7e96f7000ad686a7f901196c9b6b8;hp=c772b43aae15dbb97ee568588992b60462cbd21a;hb=3f8d6ea256f520d439cebc37c46bb93c30b2660e;hpb=9152d431da4dab77d010834046f72b84044dffab diff --git a/php_http_request_api.h b/php_http_request_api.h index c772b43..6841938 100644 --- a/php_http_request_api.h +++ b/php_http_request_api.h @@ -119,11 +119,11 @@ PHP_HTTP_API void _http_request_body_dtor(http_request_body *body TSRMLS_DC); #define http_request_body_free(b) _http_request_body_free((b) TSRMLS_CC) PHP_HTTP_API void _http_request_body_free(http_request_body *body TSRMLS_DC); -#define http_request_init(ch, meth, url, body, options, response) _http_request_init((ch), (meth), (url), (body), (options), (response) TSRMLS_CC) -PHP_HTTP_API STATUS _http_request_init(CURL *ch, http_request_method meth, char *url, http_request_body *body, HashTable *options, phpstr *response TSRMLS_DC); +#define http_request_init(ch, meth, url, body, options) _http_request_init((ch), (meth), (url), (body), (options) TSRMLS_CC) +PHP_HTTP_API STATUS _http_request_init(CURL *ch, http_request_method meth, char *url, http_request_body *body, HashTable *options TSRMLS_DC); -#define http_request_exec(ch, i) _http_request_exec((ch), (i) TSRMLS_CC) -PHP_HTTP_API STATUS _http_request_exec(CURL *ch, HashTable *info TSRMLS_DC); +#define http_request_exec(ch, i, response, request) _http_request_exec((ch), (i), (response), (request) TSRMLS_CC) +PHP_HTTP_API STATUS _http_request_exec(CURL *ch, HashTable *info, phpstr *response, phpstr *request TSRMLS_DC); #define http_request_info(ch, i) _http_request_info((ch), (i) TSRMLS_CC) PHP_HTTP_API void _http_request_info(CURL *ch, HashTable *info TSRMLS_DC);