aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
blob: 25790d9fdd1cf3a0d02e855beb940553f138b071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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, long);
struct json_object* fetchJSON(const char*);

#endif