aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAnthony Liot <anthony.liot@gmail.com>2012-12-28 09:36:13 +0100
committerAnthony Liot <anthony.liot@gmail.com>2012-12-28 09:36:13 +0100
commit68d5248ff7152368c95a861560ecbb5c734ab1d7 (patch)
treeee051de33cb48c25501f8e217e1b9120cff6e509 /system
parentaf4716bb662651c26fdbe5ca1fb1e6a4e8384301 (diff)
Add comment,test,authors. Change indentation and comma space
Modify the indentation Add Author Add comment Add test inside runner.py
Diffstat (limited to 'system')
-rw-r--r--system/include/emscripten/emscripten.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h
index fb63384b..30165d8b 100644
--- a/system/include/emscripten/emscripten.h
+++ b/system/include/emscripten/emscripten.h
@@ -186,6 +186,19 @@ float emscripten_random();
*/
void emscripten_async_wget(const char* url, const char* file, void (*onload)(const char*), void (*onerror)(const char*));
+/*
+ * Load file from url in asynchronous way.
+ * The requestype is 'GET' or 'POST',
+ * If is post request, param is the post parameter
+ * like key=value&key2=value2.
+ * The param 'arg' is a pointer will be pass to the callback
+ * When file is ready then 'onload' callback will called.
+ * During the download 'onprogress' callback will called.
+ * If any error occurred 'onerror' will called.
+ * The callbacks are called with an object pointer give in parameter
+ * and file if is a success, the progress value during progress
+ * and http status code if is an error.
+ */
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));
/*