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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/nacl_io.cc

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 unified diff | Download patch
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/nacl_io.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "nacl_io/nacl_io.h" 5 #include "nacl_io/nacl_io.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include "nacl_io/kernel_intercept.h" 8 #include "nacl_io/kernel_intercept.h"
9 #include "nacl_io/kernel_proxy.h" 9 #include "nacl_io/kernel_proxy.h"
10 10
11 void nacl_io_init() { 11 int nacl_io_init() {
12 ki_init(NULL); 12 return ki_init(NULL);
13 } 13 }
14 14
15 void nacl_io_uninit() { 15 int nacl_io_uninit() {
16 ki_uninit(); 16 return ki_uninit();
17 } 17 }
18 18
19 void nacl_io_init_ppapi(PP_Instance instance, PPB_GetInterface get_interface) { 19 int nacl_io_init_ppapi(PP_Instance instance, PPB_GetInterface get_interface) {
20 ki_init_ppapi(NULL, instance, get_interface); 20 return ki_init_ppapi(NULL, instance, get_interface);
21 } 21 }
22 22
23 int nacl_io_register_fs_type(const char* fs_type, fuse_operations* fuse_ops) { 23 int nacl_io_register_fs_type(const char* fs_type, fuse_operations* fuse_ops) {
24 return ki_get_proxy()->RegisterFsType(fs_type, fuse_ops); 24 return ki_get_proxy()->RegisterFsType(fs_type, fuse_ops);
25 } 25 }
26 26
27 int nacl_io_unregister_fs_type(const char* fs_type) { 27 int nacl_io_unregister_fs_type(const char* fs_type) {
28 return ki_get_proxy()->UnregisterFsType(fs_type); 28 return ki_get_proxy()->UnregisterFsType(fs_type);
29 } 29 }
30 30
31 void nacl_io_set_exit_callback(nacl_io_exit_callback_t exit_callback, 31 void nacl_io_set_exit_callback(nacl_io_exit_callback_t exit_callback,
32 void* user_data) { 32 void* user_data) {
33 ki_get_proxy()->SetExitCallback(exit_callback, user_data); 33 ki_get_proxy()->SetExitCallback(exit_callback, user_data);
34 } 34 }
35 35
36 void nacl_io_set_mount_callback(nacl_io_mount_callback_t callback, 36 void nacl_io_set_mount_callback(nacl_io_mount_callback_t callback,
37 void* user_data) { 37 void* user_data) {
38 ki_get_proxy()->SetMountCallback(callback, user_data); 38 ki_get_proxy()->SetMountCallback(callback, user_data);
39 } 39 }
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/nacl_io.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698