summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-02-21 23:51:38 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-02-21 23:51:38 +0000
commitdd11333fcec262b4aaf51498b07093be9af310fd (patch)
tree46a426a23cfb2d3d9156395f812b1ab03b04a6e8
parent10f958029a12a8ba7be12332e7e98df7c13f423e (diff)
downloadgnurl-dd11333fcec262b4aaf51498b07093be9af310fd.tar.gz
gnurl-dd11333fcec262b4aaf51498b07093be9af310fd.tar.bz2
gnurl-dd11333fcec262b4aaf51498b07093be9af310fd.zip
new fields in the progress struct
-rw-r--r--lib/urldata.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index fa4683f28..c7fa230c5 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -110,6 +110,9 @@ struct Progress {
int width; /* screen width at download start */
int flags; /* see progress.h */
struct timeval start;
+ double timespent;
+ double dlspeed;
+ double ulspeed;
};
struct UrlData {
@@ -175,9 +178,6 @@ struct UrlData {
char *newurl; /* This can only be set if a Location: was in the
document headers */
-#ifdef MULTIDOC
- struct MoreDoc *moredoc; /* linked list of more docs to get */
-#endif
struct HttpHeader *headers; /* linked list of extra headers */
struct HttpPost *httppost; /* linked list of POST data */
@@ -204,6 +204,9 @@ struct UrlData {
char *headerbuff; /* allocated buffer to store headers in */
int headersize; /* size of the allocation */
+ char *writeinfo; /* if non-NULL describes what to output on a successful
+ completion */
+
struct Progress progress;
#define MAX_CURL_USER_LENGTH 128