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

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

#endif