]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Added curl_easy_getinfo()
authorDaniel Stenberg <daniel@haxx.se>
Mon, 2 Oct 2000 06:27:43 +0000 (06:27 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 2 Oct 2000 06:27:43 +0000 (06:27 +0000)
lib/easy.c
lib/highlevel.c

index 8f2de5ece9a095d07a1df4db98d9eabd8562c441..90c6e7b30c4f1bef18cfb16bac64553ff0f4f820 100644 (file)
@@ -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);
+}
index 51f718f1df399256847b9d629f5ded19061b5e1e..f0a6a6810dd1f36a12994e5dae330eefa3382977 100644 (file)
@@ -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;
 }