projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e372a44
)
Added curl_easy_getinfo()
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 2 Oct 2000 06:27:43 +0000
(06:27 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 2 Oct 2000 06:27:43 +0000
(06:27 +0000)
lib/easy.c
patch
|
blob
|
history
lib/highlevel.c
patch
|
blob
|
history
diff --git
a/lib/easy.c
b/lib/easy.c
index
8f2de5e
..
90c6e7b
100644
(file)
--- 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
51f718f
..
f0a6a68
100644
(file)
--- 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;
}