--- easy.c 2010-08-06 20:52:09.723543817 +0200 +++ ../../curl-7.21.0-old/lib/easy.c 2010-05-25 00:23:19.000000000 +0200 @@ -421,18 +421,6 @@ return ret; } -/* - * curl_easy_getwritedata() is the external interface for getting - * WRITEDATA, saved in a CURL-Handle - */ - -void *curl_easy_getwritedata(CURL *curl) -{ - struct SessionHandle *data = curl; - - return Curl_getwritedata(data); -} - #ifdef CURL_MULTIEASY /*************************************************************************** * This function is still only for testing purposes. It makes a great way [btwotch@erebos lib]$ diff -Naur ../../curl-7.21.0-old/lib/easy.c easy.c --- ../../curl-7.21.0-old/lib/easy.c 2010-05-25 00:23:19.000000000 +0200 +++ easy.c 2010-08-06 20:52:09.723543817 +0200 @@ -421,6 +421,18 @@ return ret; } +/* + * curl_easy_getwritedata() is the external interface for getting + * WRITEDATA, saved in a CURL-Handle + */ + +void *curl_easy_getwritedata(CURL *curl) +{ + struct SessionHandle *data = curl; + + return Curl_getwritedata(data); +} + #ifdef CURL_MULTIEASY /*************************************************************************** * This function is still only for testing purposes. It makes a great way --- ../../curl-7.21.0-old/lib/url.c 2010-06-07 17:02:53.000000000 +0200 +++ url.c 2010-08-06 20:57:30.703543606 +0200 @@ -864,6 +864,12 @@ return res; } + +void *Curl_getwritedata(struct SessionHandle *data) +{ + return data->set.out; +} + CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, va_list param) { --- ../../curl-7.21.0-old/lib/url.h 2010-05-25 00:23:19.000000000 +0200 +++ url.h 2010-08-06 20:57:36.559543956 +0200 @@ -32,6 +32,7 @@ CURLcode Curl_init_userdefined(struct UserDefined *set); CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, va_list arg); +void *Curl_getwritedata(struct SessionHandle *data); CURLcode Curl_dupset(struct SessionHandle * dst, struct SessionHandle * src); void Curl_freeset(struct SessionHandle * data); CURLcode Curl_close(struct SessionHandle *data); /* opposite of curl_open() */ --- ../../curl-7.21.0-old/include/curl/easy.h 2010-03-24 13:41:07.000000000 +0100 +++ curl/easy.h 2010-08-06 20:59:47.592294061 +0200 @@ -26,6 +26,7 @@ #endif CURL_EXTERN CURL *curl_easy_init(void); +void *curl_easy_getwritedata(CURL *curl); CURL_EXTERN CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...); CURL_EXTERN CURLcode curl_easy_perform(CURL *curl); CURL_EXTERN void curl_easy_cleanup(CURL *curl);