X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_api.h;h=df335bf28ff8aa624d4fe89c494049f26c856ea9;hp=25b22327672cb41ea57c9707cf37c3f4c4644346;hb=b30c267318b2b1add1a01e783f9dbe561a649a7b;hpb=1a460e6f3440e7459de0f295f3955483d0743dcb diff --git a/php_http_request_api.h b/php_http_request_api.h index 25b2232..df335bf 100644 --- a/php_http_request_api.h +++ b/php_http_request_api.h @@ -83,8 +83,17 @@ typedef struct { int unfinished; } http_request_pool; -#define http_request_copystr(s) _http_request_copystr((s) TSRMLS_CC) -PHP_HTTP_API char *_http_request_copystr(const char *string TSRMLS_DC); +#define COPY_STRING 1 +#define COPY_SLIST 2 +#define http_request_data_copy(type, data) _http_request_data_copy((type), (data) TSRMLS_CC) +extern void *_http_request_data_copy(int type, void *data TSRMLS_DC); +#define http_request_data_free_string _http_request_data_free_string +extern void _http_request_data_free_string(void *string); +#define http_request_data_free_slist _http_request_data_free_slist +extern void _http_request_data_free_slist(void *list); + +#define http_request_global_init _http_request_global_init +extern STATUS _http_request_global_init(void); #define http_request_method_name(m) _http_request_method_name((m) TSRMLS_CC) PHP_HTTP_API const char *_http_request_method_name(http_request_method m TSRMLS_DC);