Forgot a piece of README-nacl.txt
authorGabriel Jacobo <gabomdq@gmail.com>
Sun, 08 Jun 2014 18:50:40 -0300
changeset 8852 bb99ec3b21d8
parent 8851 a7cfe554d337
child 8853 a25dcbe4fb02
Forgot a piece of README-nacl.txt
README-nacl.txt
--- a/README-nacl.txt	Sun Jun 08 18:18:13 2014 -0300
+++ b/README-nacl.txt	Sun Jun 08 18:50:40 2014 -0300
@@ -28,6 +28,10 @@
 you dump them into the SDK path, which is inconvenient).
 Also provided in test/nacl is the required support file, such as index.html, 
 manifest.json, etc.
+SDL apps for NaCl run on a worker thread using the ppapi_simple infrastructure.
+This allows for blocking calls on all the relevant systems (OpenGL ES, filesystem),
+hiding the asynchronous nature of the browser behind the scenes...which is not the
+same as making it dissapear!
 
 
 ================================================================================
@@ -59,10 +63,24 @@
 SDL_RWops work transparently with nacl_io. Two functions are provided to control
 mount points:
     
+    int SDL_NaClMount(const char* source, const char* target, 
+                      const char* filesystemtype, 
+                      unsigned long mountflags, const void *data);
+    int SDL_NaClUmount(const char *target);
     
-    For convenience, SDL will by default
-mount an httpfs tree at / before calling the app's main function. Such setting
-can be overriden by calling SDL_NaCl
+    For convenience, SDL will by default mount an httpfs tree at / before calling 
+the app's main function. Such setting can be overriden by calling:
+    
+    SDL_NaClUmount("/");
+
+And then mounting a different filesystem at /
+
+It's important to consider that the asynchronous nature of file operations on a
+browser is hidden from the application, effectively providing the developer with
+a set of blocking file operations just like you get in a regular desktop 
+environment, which eases the job of porting to Native Client, but also introduces 
+a set of challenges of its own, in particular when big file sizes and slow 
+connections are involved.
 
 For more information on how nacl_io and mount points work, see: