diff options
Diffstat (limited to 'icclient/typedefs.h')
-rw-r--r-- | icclient/typedefs.h | 15 |
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 |