summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-06-21 19:46:25 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-06-21 19:46:25 -0700
commit2abffbd059e9936dbf5a12d03ea69fa47ddf10a6 (patch)
tree0efa1c4abedf93258a86e20a872e9be9e00e33eb /system
parent7f402318369db24e17f5eb7ddd895f7685912703 (diff)
parent2c86cbf25bead7607256ef9bb8f36bfe07047cee (diff)
Merge pull request #483 from caiiiycuk/emscripten_fs_api
Emscripten filesystem api
Diffstat (limited to 'system')
-rw-r--r--system/include/emscripten/emscripten.h12
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