VirtualBox

Changeset 73851 in vbox for trunk/src


Ignore:
Timestamp:
Aug 22, 2018 10:51:53 PM (6 years ago)
Author:
vboxsync
Message:

http-curl.cpp: revert r124526. We still need to support systems with
old curl that doesn't have CURLOPT_XFERINFOFUNCTION.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r73839 r73851  
    21802180 * cURL callback for reporting progress, we use it for checking for abort.
    21812181 */
    2182 static int rtHttpProgress(void *pData,
    2183                           curl_off_t rdTotalDownload, curl_off_t rdDownloaded,
    2184                           curl_off_t rdTotalUpload, curl_off_t rdUploaded)
     2182static int rtHttpProgress(void *pData, double rdTotalDownload, double rdDownloaded, double rdTotalUpload, double rdUploaded)
    21852183{
    21862184    PRTHTTPINTERNAL pThis = (PRTHTTPINTERNAL)pData;
     
    22602258     * Progress/abort.
    22612259     */
    2262     rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_XFERINFOFUNCTION, &rtHttpProgress);
     2260    rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_PROGRESSFUNCTION, &rtHttpProgress);
    22632261    if (CURL_FAILURE(rcCurl))
    22642262        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);
    22662264    if (CURL_FAILURE(rcCurl))
    22672265        return VERR_HTTP_CURL_ERROR;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette