summaryrefslogtreecommitdiff
path: root/lib/progress.h
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@cool.haxx.se>2018-05-15 16:43:56 +0200
committerBrad King <brad.king@kitware.com>2018-05-18 10:16:12 -0400
commitd431136e029c652f5913bcebeaab3b9236b114c4 (patch)
treec0838b4432a3786a323c94a680bb16f644198311 /lib/progress.h
parentaf9e654045f11028e50dac4781e297834129a749 (diff)
downloadcmake-d431136e029c652f5913bcebeaab3b9236b114c4.tar.gz
curl 2018-05-15 (cb013830)
Code extracted from: https://github.com/curl/curl.git at commit cb013830383f1ccc9757aba36bc32df5ec281c02 (curl-7_60_0).
Diffstat (limited to 'lib/progress.h')
-rw-r--r--lib/progress.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/progress.h b/lib/progress.h
index 9333ab25c2..2baa925db2 100644
--- a/lib/progress.h
+++ b/lib/progress.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -46,14 +46,15 @@ void Curl_pgrsSetDownloadSize(struct Curl_easy *data, curl_off_t size);
void Curl_pgrsSetUploadSize(struct Curl_easy *data, curl_off_t size);
void Curl_pgrsSetDownloadCounter(struct Curl_easy *data, curl_off_t size);
void Curl_pgrsSetUploadCounter(struct Curl_easy *data, curl_off_t size);
+void Curl_ratelimit(struct Curl_easy *data, struct curltime now);
int Curl_pgrsUpdate(struct connectdata *);
void Curl_pgrsResetTransferSizes(struct Curl_easy *data);
void Curl_pgrsTime(struct Curl_easy *data, timerid timer);
-long Curl_pgrsLimitWaitTime(curl_off_t cursize,
- curl_off_t startsize,
- curl_off_t limit,
- struct curltime start,
- struct curltime now);
+timediff_t Curl_pgrsLimitWaitTime(curl_off_t cursize,
+ curl_off_t startsize,
+ curl_off_t limit,
+ struct curltime start,
+ struct curltime now);
/* Don't show progress for sizes smaller than: */
#define LEAST_SIZE_PROGRESS BUFSIZE