mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Tier2: rename curl params field name
'cust' -> 'user'.
This commit is contained in:
parent
8f384e424d
commit
986fe4a93d
@ -6,13 +6,13 @@ struct CURLProgress
|
||||
CURLProgress()
|
||||
: curl(nullptr)
|
||||
, name(nullptr)
|
||||
, cust(nullptr)
|
||||
, user(nullptr)
|
||||
, size(0)
|
||||
{}
|
||||
|
||||
CURL* curl;
|
||||
const char* name;
|
||||
void* cust; // custom pointer to anything, todo(amos): rename to 'user'.
|
||||
void* user; // custom pointer to anything.
|
||||
size_t size;
|
||||
};
|
||||
|
||||
@ -47,9 +47,9 @@ size_t CURLWriteStringCallback(char* contents, const size_t size, const size_t n
|
||||
curl_slist* CURLSlistAppend(curl_slist* slist, const char* string);
|
||||
|
||||
bool CURLUploadFile(const char* remote, const char* filePath, const char* options,
|
||||
void* customPointer, const bool usePost, const curl_slist* slist, const CURLParams& params);
|
||||
void* userData, const bool usePost, const curl_slist* slist, const CURLParams& params);
|
||||
bool CURLDownloadFile(const char* remote, const char* savePath, const char* fileName,
|
||||
const char* options, curl_off_t dataSize, void* customPointer, const CURLParams& params);
|
||||
const char* options, curl_off_t dataSize, void* userData, const CURLParams& params);
|
||||
|
||||
CURL* CURLInitRequest(const char* remote, const char* request, string& outResponse,
|
||||
curl_slist*& slist, const CURLParams& params);
|
||||
|
@ -97,7 +97,7 @@ curl_slist* CURLSlistAppend(curl_slist* slist, const char* string)
|
||||
}
|
||||
|
||||
bool CURLUploadFile(const char* remote, const char* filePath,
|
||||
const char* options, void* customPointer, const bool usePost,
|
||||
const char* options, void* userData, const bool usePost,
|
||||
const curl_slist* slist, const CURLParams& params)
|
||||
{
|
||||
CURL* curl = EasyInit();
|
||||
@ -123,7 +123,7 @@ bool CURLUploadFile(const char* remote, const char* filePath,
|
||||
|
||||
progressData.curl = curl;
|
||||
progressData.name = filePath;
|
||||
progressData.cust = customPointer;
|
||||
progressData.user = userData;
|
||||
progressData.size = fileStatus.st_size;
|
||||
|
||||
string response;
|
||||
@ -172,7 +172,7 @@ bool CURLUploadFile(const char* remote, const char* filePath,
|
||||
}
|
||||
|
||||
bool CURLDownloadFile(const char* remote, const char* savePath, const char* fileName,
|
||||
const char* options, curl_off_t dataSize, void* customPointer, const CURLParams& params)
|
||||
const char* options, curl_off_t dataSize, void* userData, const CURLParams& params)
|
||||
{
|
||||
CURL* curl = EasyInit();
|
||||
if (!curl)
|
||||
@ -196,7 +196,7 @@ bool CURLDownloadFile(const char* remote, const char* savePath, const char* file
|
||||
|
||||
progressData.curl = curl;
|
||||
progressData.name = fileName;
|
||||
progressData.cust = customPointer;
|
||||
progressData.user = userData;
|
||||
progressData.size = dataSize;
|
||||
|
||||
CURLInitCommonOptions(curl, remote, nullptr, file, params, &progressData);
|
||||
|
Loading…
x
Reference in New Issue
Block a user