summaryrefslogtreecommitdiff
path: root/icclient
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-11-14 11:10:43 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-11-14 11:10:43 +0800
commit8fe15035d1d08e2e628be26f73044baa58e459c4 (patch)
treecd5a7aca507851a8c99fa64adeaee5b250deeed9 /icclient
parentddeb72bd001a0486d11c76bda995bebedf85f509 (diff)
One handle for every thread
See libcurl-tutorial(3) manual page, "Handle the Easy libcurl".
Diffstat (limited to 'icclient')
-rw-r--r--icclient/typedefs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/icclient/typedefs.h b/icclient/typedefs.h
index 6876144..4bb6dcc 100644
--- a/icclient/typedefs.h
+++ b/icclient/typedefs.h
@@ -6,10 +6,12 @@
#include <emscripten/fetch.h>
typedef emscripten_fetch_t icclient_response;
#else
+#include <curl/curl.h>
typedef struct {
void *userData;
char *data;
size_t numBytes;
+ CURL *curl;
} icclient_response;
#endif