summaryrefslogtreecommitdiff
path: root/icclient
diff options
context:
space:
mode:
Diffstat (limited to 'icclient')
-rw-r--r--icclient/typedefs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/icclient/typedefs.h b/icclient/typedefs.h
index 2b0ec21..fbfa0d0 100644
--- a/icclient/typedefs.h
+++ b/icclient/typedefs.h
@@ -4,15 +4,30 @@
#ifdef __cplusplus
#include <cstddef>
#endif
+
#ifdef __EMSCRIPTEN__
+
#include <emscripten/fetch.h>
+
typedef emscripten_fetch_t icclient_fetch_t;
+typedef char icclient_post;
+
#else
+
+#include <curl/curl.h>
+
typedef struct {
void *userData;
char *data;
size_t numBytes;
} icclient_fetch_t;
+typedef struct curl_httppost icclient_post;
+
#endif
+struct icclient_post_callback {
+ icclient_post *post;
+ void (*callback)(icclient_fetch_t *);
+};
+
#endif