summaryrefslogtreecommitdiff
path: root/interchange/typedefs.h
blob: a7996714c7af84009b81a811dabe2f34d8a836aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef INTERCHANGE_TYPEDEFS_H
#define INTERCHANGE_TYPEDEFS_H

#include <stddef.h>
#ifdef __EMSCRIPTEN__
#include <emscripten/fetch.h>
typedef emscripten_fetch_t interchange_response;
#else
#include <curl/curl.h>
typedef struct {
	void *userData;
	char *url;
	char *data;
	size_t numBytes;
	CURL *curl;
} interchange_response;
#endif

#endif