X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=libcurl.h;h=15bf019b743bcf123d879a28121344fce1cfbc0c;hp=4b098becc1dbce5baeea9970456567afa7f79db7;hb=46a67647b115154668877ed632b38d95aac7066d;hpb=1dfae27462dba735f317cac38f3b7deb415ed154 diff --git a/libcurl.h b/libcurl.h index 4b098bec..15bf019b 100644 --- a/libcurl.h +++ b/libcurl.h @@ -11,13 +11,11 @@ typedef void (*curl_callback_t) (int status, size_t length_received, unsigned ch void Curl_Run(void); qboolean Curl_Running(void); -qboolean Curl_Begin_ToFile(const char *URL, double maxspeed, const char *name, qboolean ispak, qboolean forthismap); +qboolean Curl_Begin_ToFile(const char *URL, double maxspeed, const char *name, int loadtype, qboolean forthismap); qboolean Curl_Begin_ToMemory(const char *URL, double maxspeed, unsigned char *buf, size_t bufsize, curl_callback_t callback, void *cbdata); -qboolean Curl_Begin_ToMemory_POST(const char *URL, double maxspeed, const char *post_content_type, const unsigned char *postbuf, size_t postbufsize, unsigned char *buf, size_t bufsize, curl_callback_t callback, void *cbdata); - // NOTE: if these return false, the callback will NOT get called, so free your buffer then! -void Curl_Cancel_ToMemory(curl_callback_t callback, void *cbdata); - // removes all downloads with the given callback and cbdata (this does NOT call the callbacks!) +qboolean Curl_Begin_ToMemory_POST(const char *URL, const char *extraheaders, double maxspeed, const char *post_content_type, const unsigned char *postbuf, size_t postbufsize, unsigned char *buf, size_t bufsize, curl_callback_t callback, void *cbdata); +void Curl_Cancel_ToMemory(curl_callback_t callback, void* cbdata); void Curl_Init(void); void Curl_Init_Commands(void); @@ -39,7 +37,7 @@ typedef struct Curl_downloadinfo_s qboolean queued; } Curl_downloadinfo_t; -Curl_downloadinfo_t *Curl_GetDownloadInfo(int *nDownloads, const char **additional_info); +Curl_downloadinfo_t *Curl_GetDownloadInfo(int *nDownloads, const char **additional_info, char *addinfo, size_t addinfolength); // this may and should be Z_Free()ed // the result is actually an array // an additional info string may be returned in additional_info as a