]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - libcurl.h
fix a bug in cvar hash handling
[xonotic/darkplaces.git] / libcurl.h
index 56a94e2a82628735a51e011bae41eee017e0ff7c..ed05551c10bf27d31043951425b9a584bc7787cc 100644 (file)
--- a/libcurl.h
+++ b/libcurl.h
@@ -12,10 +12,13 @@ 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_ToMemory(const char *URL, double maxspeed, unsigned char *buf, size_t bufsize, curl_callback_t callback, void *cbdata);
-       // NOTE: if it returns false, the callback will NOT get called, so free your buffer then!
+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);
 void Curl_Shutdown(void);