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 8f2de5e..90c6e7b 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 51f718f..f0a6a68 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;
 }