X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=libcurl.h;h=c5e55dd3707d4d17c008ee5e32a48e1d6dcc6604;hb=a38c129ff5ec67a0fabc260b59d12922ebb497d8;hp=ed05551c10bf27d31043951425b9a584bc7787cc;hpb=a9a9fc7be3154f84c3de2f1f7c6ad15a3c806198;p=xonotic%2Fdarkplaces.git diff --git a/libcurl.h b/libcurl.h index ed05551c..c5e55dd3 100644 --- a/libcurl.h +++ b/libcurl.h @@ -15,9 +15,6 @@ qboolean Curl_Begin_ToFile(const char *URL, double maxspeed, const char *name, q 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, 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); - // 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!) void Curl_Init(void); void Curl_Init_Commands(void); @@ -39,7 +36,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