Changeset 58217 in vbox for trunk/src/VBox/Runtime/generic
- Timestamp:
- Oct 13, 2015 3:36:47 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 103369
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/http-curl.cpp
r58206 r58217 150 150 /** Download size hint set by the progress callback. */ 151 151 uint64_t cbDownloadHint; 152 /** Callback called during download. */ 153 PRTHTTPDOWNLDPROGRCALLBACK pfnDownloadProgress; 154 /** User pointer parameter for pfnDownloadProgress. */ 155 void *pvDownloadProgressUser; 152 156 } RTHTTPINTERNAL; 153 157 /** Pointer to an internal HTTP client instance. */ … … 2121 2125 pThis->cbDownloadHint = (uint64_t)rdTotalDownload; 2122 2126 2127 if (pThis->pfnDownloadProgress) 2128 pThis->pfnDownloadProgress(pThis, pThis->pvDownloadProgressUser, (uint64_t)rdTotalDownload, (uint64_t)rdDownloaded); 2129 2123 2130 return pThis->fAbort ? 1 : 0; 2124 2131 } … … 2505 2512 } 2506 2513 2514 2515 RTR3DECL(int) RTHttpSetDownloadProgressCallback(RTHTTP hHttp, PRTHTTPDOWNLDPROGRCALLBACK pfnDownloadProgress, void *pvUser) 2516 { 2517 PRTHTTPINTERNAL pThis = hHttp; 2518 RTHTTP_VALID_RETURN(pThis); 2519 2520 pThis->pfnDownloadProgress = pfnDownloadProgress; 2521 pThis->pvDownloadProgressUser = pvUser; 2522 return VINF_SUCCESS; 2523 }
Note:
See TracChangeset
for help on using the changeset viewer.