aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-12-18 21:22:59 +0100
committerJan200101 <sentrycraft123@gmail.com>2020-12-18 21:22:59 +0100
commit872f9c3ab113a5387d59cdcb0591e3ec95fc06a7 (patch)
tree0c86bf51a6059a8bbf1dd0b365408aa6f9cf5d23 /src/net.h
parent3c0fae06b5ae2c59bacd2e3d6a1033f864cd368e (diff)
downloadpolecat-872f9c3ab113a5387d59cdcb0591e3ec95fc06a7.tar.gz
polecat-872f9c3ab113a5387d59cdcb0591e3ec95fc06a7.zip
add download progress bar
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 8c5b894..25790d9 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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