diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-25 10:20:12 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-25 10:20:12 +0800 |
commit | 7f934ce683df5252fa6350dcc15e187b1c7623cf (patch) | |
tree | f600fc0cdfc9f4397580e44044468858167d0aa9 /interchange/typedefs.h | |
parent | a606c79d52d2027afaafd424a25fa6a4598aa8d7 (diff) |
Rename remaining icclient to interchange
Diffstat (limited to 'interchange/typedefs.h')
-rw-r--r-- | interchange/typedefs.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/interchange/typedefs.h b/interchange/typedefs.h new file mode 100644 index 0000000..02a412f --- /dev/null +++ b/interchange/typedefs.h @@ -0,0 +1,18 @@ +#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 *data; + size_t numBytes; + CURL *curl; +} interchange_response; +#endif + +#endif |