]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - libcurl.h
cvar: use unsigned for flags and hashindex
[xonotic/darkplaces.git] / libcurl.h
index 43ab1713856913553a8da7c86994b7e376651d73..722981e2f7b914703df2baf536f6a03cd9c4dbbe 100644 (file)
--- a/libcurl.h
+++ b/libcurl.h
@@ -1,3 +1,7 @@
+#include <stddef.h>
+#include "qtypes.h"
+#include "qdefs.h"
+
 enum
 {
        CURLCBSTATUS_OK = 0,
@@ -9,7 +13,8 @@ enum
 typedef void (*curl_callback_t) (int status, size_t length_received, unsigned char *buffer, void *cbdata);
 // code is one of the CURLCBSTATUS constants, or the HTTP error code (when > 0).
 
-void Curl_Run(void);
+void Curl_Frame(void);
+int Curl_Select(uint32_t microseconds);
 qbool Curl_Running(void);
 qbool Curl_Begin_ToFile(const char *URL, double maxspeed, const char *name, int loadtype, qbool forthismap);
 
@@ -20,6 +25,7 @@ void Curl_Cancel_ToMemory(curl_callback_t callback, void* cbdata);
 void Curl_Init(void);
 void Curl_Init_Commands(void);
 void Curl_Shutdown(void);
+qbool Curl_Available(void);
 void Curl_CancelAll(void);
 void Curl_Clear_forthismap(void);
 qbool Curl_Have_forthismap(void);