aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
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