diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-02-14 23:13:15 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-02-14 23:13:15 +0000 |
commit | f63c7b8d62c0a20b41c0761bf05fb393c725564b (patch) | |
tree | f7af9c9fcf5d5311e06ed2d4c2642ad401f77f4b | |
parent | 1ebeb976f9b7f260796b646ad7cfef30f3938342 (diff) |
new stuff for the new progress meter
-rw-r--r-- | lib/urldata.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 3cfee993a..3f8298829 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -95,6 +95,20 @@ of need. */ #define HEADERSIZE 256 +struct Progress { + double size_dl; + double size_ul; + double downloaded; + double uploaded; + + double current_speed; /* uses the currently fastest transfer */ + + int mode; /* what kind of progress meter to display */ + int width; /* screen width at download start */ + int flags; /* see progress.h */ + struct timeval start; +}; + struct UrlData { FILE *out; /* the fetched file goes here */ FILE *in; /* the uploaded file is read from here */ @@ -186,7 +200,8 @@ struct UrlData { char *headerbuff; /* allocated buffer to store headers in */ int headersize; /* size of the allocation */ - int progressmode; /* what kind of progress meter to display */ + + struct Progress progress; #define MAX_CURL_USER_LENGTH 128 #define MAX_CURL_PASSWORD_LENGTH 128 |