diff options
author | Aleksander Guryanov <caiiiycuk@gmail.com> | 2012-06-20 22:20:04 +0700 |
---|---|---|
committer | Aleksander Guryanov <caiiiycuk@gmail.com> | 2012-06-21 20:38:01 +0700 |
commit | 2c86cbf25bead7607256ef9bb8f36bfe07047cee (patch) | |
tree | 98f4ea7699d6d7474dd80b4ab4037e8ff5dd3a96 /system/include | |
parent | 6d34633796954f2edb225c66e62ab5a188d59bb0 (diff) |
Implementation for emscripten_async_wget
Diffstat (limited to 'system/include')
-rw-r--r-- | system/include/emscripten/emscripten.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h index 48ccd341..5b71ce6a 100644 --- a/system/include/emscripten/emscripten.h +++ b/system/include/emscripten/emscripten.h @@ -103,6 +103,18 @@ float emscripten_random(); //extern void EMSCRIPTEN_COMMENT(const char *text); /* + * Emscripten file system api + */ + +/* + * Load file from url in asynchronous way. + * When file is loaded then 'onload' callback will called. + * If any error occurred 'onerror' will called. + * The callbacks are called with the file as their argument. + */ +void emscripten_async_wget(const char* url, const char* file, void (*onload)(const char*), void (*onerror)(const char*)); + +/* * Profiling tools. * INIT must be called first, with the maximum identifier that * will be used. BEGIN will add some code that marks |