aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
blob: 8282706e37ef964d9a039f0874ebd4137563a776 (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 TIMEOPT CURLINFO_TOTAL_TIME_T

size_t WriteMemoryCallback(void*, size_t, size_t, void*);
struct MemoryStruct* downloadToRam(const char* URL, long);
void downloadToFile(const char*, const char*);
struct json_object* fetchJSON(const char*);

#endif