aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAnthony Liot <anthony.liot@gmail.com>2012-12-13 15:27:37 +0100
committerAnthony Liot <anthony.liot@gmail.com>2012-12-13 15:27:37 +0100
commitaf4716bb662651c26fdbe5ca1fb1e6a4e8384301 (patch)
tree37efd69c71dca911e6526405ab58988d7d376e90 /system
parent125256db5c00421c00ef2afbb0e909a81ab3d1d1 (diff)
Add emscripten_async_wget2 with progress callback
Send request Post & Get with progress callback Add sample HTTP using emscripten_async_wget2
Diffstat (limited to 'system')
-rw-r--r--system/include/emscripten/emscripten.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h
index 3eefe0b8..fb63384b 100644
--- a/system/include/emscripten/emscripten.h
+++ b/system/include/emscripten/emscripten.h
@@ -186,6 +186,8 @@ float emscripten_random();
*/
void emscripten_async_wget(const char* url, const char* file, void (*onload)(const char*), void (*onerror)(const char*));
+void emscripten_async_wget2(const char* url, const char* file, const char* requesttype, const char* param, void *arg, void (*onload)(void*, const char*), void (*onerror)(void*, int), void (*onprogress)(void*, int));
+
/*
* Prepare a file in asynchronous way. This does just the
* preparation part of emscripten_async_wget, that is, it