diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2020-12-18 21:22:59 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2020-12-18 21:22:59 +0100 |
commit | 872f9c3ab113a5387d59cdcb0591e3ec95fc06a7 (patch) | |
tree | 0c86bf51a6059a8bbf1dd0b365408aa6f9cf5d23 /src/net.h | |
parent | 3c0fae06b5ae2c59bacd2e3d6a1033f864cd368e (diff) | |
download | polecat-872f9c3ab113a5387d59cdcb0591e3ec95fc06a7.tar.gz polecat-872f9c3ab113a5387d59cdcb0591e3ec95fc06a7.zip |
add download progress bar
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,10 +1,14 @@ #ifndef NET_H #define NET_H +#include <curl/curl.h> #include <json.h> +#define TIMETYPE curl_off_t +#define TIMEOPT CURLINFO_TOTAL_TIME_T + size_t WriteMemoryCallback(void*, size_t, size_t, void*); -struct MemoryStruct* downloadToRam(const char* URL); +struct MemoryStruct* downloadToRam(const char* URL, long); struct json_object* fetchJSON(const char*); #endif |