diff options
Diffstat (limited to 'icclient/typedefs.h')
-rw-r--r-- | icclient/typedefs.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/icclient/typedefs.h b/icclient/typedefs.h index 1b2f176..c45e260 100644 --- a/icclient/typedefs.h +++ b/icclient/typedefs.h @@ -3,9 +3,13 @@ #ifdef __EMSCRIPTEN__ #include <emscripten/fetch.h> -typedef void (*icclient_handler)(emscripten_fetch_t *); +typedef emscripten_fetch_t icclient_fetch_t; #else -typedef size_t (*icclient_handler)(void *, size_t, size_t, void *); +typedef struct { + void *userData; + char *data; + size_t numBytes; +} icclient_fetch_t; #endif #endif |