summaryrefslogtreecommitdiff
path: root/interchange/typedefs.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-25 10:20:12 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-25 10:20:12 +0800
commit7f934ce683df5252fa6350dcc15e187b1c7623cf (patch)
treef600fc0cdfc9f4397580e44044468858167d0aa9 /interchange/typedefs.h
parenta606c79d52d2027afaafd424a25fa6a4598aa8d7 (diff)
Rename remaining icclient to interchange
Diffstat (limited to 'interchange/typedefs.h')
-rw-r--r--interchange/typedefs.h18
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