]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - libcurl.h
another patch from div0 to fix ping report parsing
[xonotic/darkplaces.git] / libcurl.h
1 void Curl_Run();
2 qboolean Curl_Running();
3 void Curl_Begin(const char *URL, const char *name, qboolean ispak, qboolean forthismap);
4 void Curl_Init();
5 void Curl_Init_Commands();
6 void Curl_Shutdown();
7 void Curl_CancelAll();
8 void Curl_Clear_forthismap();
9
10 void Curl_ClearRequirements();
11 void Curl_RequireFile(const char *filename);
12 void Curl_SendRequirements();
13
14 typedef struct Curl_downloadinfo_s
15 {
16         char filename[MAX_QPATH];
17         double progress;
18         double speed;
19         qboolean queued;
20 }
21 Curl_downloadinfo_t;
22 Curl_downloadinfo_t *Curl_GetDownloadInfo(int *nDownloads, const char **additional_info);
23         // this may and should be Z_Free()ed
24         // the result is actually an array
25         // an additional info string may be returned in additional_info as a
26         // pointer to a static string (but the argument may be NULL if the caller
27         // does not care)