aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
blob: 34b7519768185802afb9b2798e52f6d6ea5838d1 (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, int);
void downloadToFile(const char*, const char*, int);
struct json_object* fetchJSON(const char*);

#endif