diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-10-02 06:27:43 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-10-02 06:27:43 +0000 |
commit | b0274a553b33bf6f4fc0a114bfd267ab3a5532e4 (patch) | |
tree | 528792590c8c1e11d2671f6d623ca88041cf27a1 /lib | |
parent | e372a440c0982dce0ef1a3b171453f7f365675d1 (diff) |
Added curl_easy_getinfo()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/easy.c | 10 | ||||
-rw-r--r-- | lib/highlevel.c | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c index 8f2de5ece..90c6e7b30 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -162,3 +162,13 @@ void curl_easy_cleanup(CURL *curl) curl_close(curl); curl_free(); } + +CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...) +{ + va_list arg; + void *paramp; + va_start(arg, info); + paramp = va_arg(arg, void *); + + return curl_getinfo(curl, info, paramp); +} diff --git a/lib/highlevel.c b/lib/highlevel.c index 51f718f1d..f0a6a6810 100644 --- a/lib/highlevel.c +++ b/lib/highlevel.c @@ -724,10 +724,12 @@ CURLcode curl_transfer(CURL *curl) if(data->newurl) free(data->newurl); +#if 0 if((CURLE_OK == res) && data->writeinfo) { /* Time to output some info to stdout */ WriteOut(data); } +#endif return res; } |