Add CURLProgress structure

For a download progress bar.
This commit is contained in:
Kawe Mazidjatari 2023-07-26 20:37:58 +02:00
parent 7ea51dda8a
commit e45c0fde7d

View File

@ -1,6 +1,12 @@
#ifndef TIER2_CURLUTILS_H
#define TIER2_CURLUTILS_H
struct CURLProgress
{
CURL* priv;
size_t size;
};
size_t CURLWriteStringCallback(char* contents, const size_t size, const size_t nmemb, void* userp);
CURL* CURLInitRequest(const char* remote, const char* request, string& outResponse, curl_slist*& slist,