Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: native_client_sdk/src/libraries/nacl_io/nacl_io.h

Issue 598223004: [NaCl SDK] nacl_io: add return value to nacl_io_init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mem_leaks
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/nacl_io.h
diff --git a/native_client_sdk/src/libraries/nacl_io/nacl_io.h b/native_client_sdk/src/libraries/nacl_io/nacl_io.h
index 21abc3463259d422b49bb841c361a5fae59c93c1..c6ed47262171ef65ce1f8c10054380392be3d8cf 100644
--- a/native_client_sdk/src/libraries/nacl_io/nacl_io.h
+++ b/native_client_sdk/src/libraries/nacl_io/nacl_io.h
@@ -29,7 +29,7 @@ typedef void (*nacl_io_mount_callback_t)(const char* source,
* NOTE: If you initialize nacl_io with this constructor, you cannot
* use any filesystems that require PPAPI; e.g. persistent storage, etc.
*/
-void nacl_io_init();
+int nacl_io_init();
/**
* Initialize nacl_io with PPAPI support.
@@ -49,7 +49,7 @@ void nacl_io_init();
* |get_interface| can be retrieved via
* pp::Module::Get()->get_browser_interface()
*/
-void nacl_io_init_ppapi(PP_Instance instance, PPB_GetInterface get_interface);
+int nacl_io_init_ppapi(PP_Instance instance, PPB_GetInterface get_interface);
/**
* Uninitialize nacl_io.
@@ -57,7 +57,7 @@ void nacl_io_init_ppapi(PP_Instance instance, PPB_GetInterface get_interface);
* This removes interception for POSIX C-library function and releases
* any associated resources.
*/
-void nacl_io_uninit();
+int nacl_io_uninit();
void nacl_io_set_exit_callback(nacl_io_exit_callback_t exit_callback,
void* user_data);
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ('k') | native_client_sdk/src/libraries/nacl_io/nacl_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698