- Timestamp:
- Aug 22, 2018 10:51:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/http-curl.cpp
r73839 r73851 2180 2180 * cURL callback for reporting progress, we use it for checking for abort. 2181 2181 */ 2182 static int rtHttpProgress(void *pData, 2183 curl_off_t rdTotalDownload, curl_off_t rdDownloaded, 2184 curl_off_t rdTotalUpload, curl_off_t rdUploaded) 2182 static int rtHttpProgress(void *pData, double rdTotalDownload, double rdDownloaded, double rdTotalUpload, double rdUploaded) 2185 2183 { 2186 2184 PRTHTTPINTERNAL pThis = (PRTHTTPINTERNAL)pData; … … 2260 2258 * Progress/abort. 2261 2259 */ 2262 rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_ XFERINFOFUNCTION, &rtHttpProgress);2260 rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_PROGRESSFUNCTION, &rtHttpProgress); 2263 2261 if (CURL_FAILURE(rcCurl)) 2264 2262 return VERR_HTTP_CURL_ERROR; 2265 rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_ XFERINFODATA, (void *)pThis);2263 rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_PROGRESSDATA, (void *)pThis); 2266 2264 if (CURL_FAILURE(rcCurl)) 2267 2265 return VERR_HTTP_CURL_ERROR;
Note:
See TracChangeset
for help on using the changeset viewer.