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

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

Issue 601963002: [NaCl SDK]: nacl_io: add nacl_io_uninit function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_leak
Patch Set: Created 6 years, 2 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 | « no previous file | native_client_sdk/src/libraries/nacl_io/nacl_io.cc » ('j') | 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 #ifndef LIBRARIES_NACL_IO_NACL_IO_H_ 5 #ifndef LIBRARIES_NACL_IO_NACL_IO_H_
6 #define LIBRARIES_NACL_IO_NACL_IO_H_ 6 #define LIBRARIES_NACL_IO_NACL_IO_H_
7 7
8 #include <ppapi/c/pp_instance.h> 8 #include <ppapi/c/pp_instance.h>
9 #include <ppapi/c/ppb.h> 9 #include <ppapi/c/ppb.h>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 * |get_interface| is passed to your module in the PPP_InitializeModule 44 * |get_interface| is passed to your module in the PPP_InitializeModule
45 * function. 45 * function.
46 * 46 *
47 * If you are using the PPAPI C++ interface: 47 * If you are using the PPAPI C++ interface:
48 * |instance| can be retrieved via the pp::Instance::pp_instance() method. 48 * |instance| can be retrieved via the pp::Instance::pp_instance() method.
49 * |get_interface| can be retrieved via 49 * |get_interface| can be retrieved via
50 * pp::Module::Get()->get_browser_interface() 50 * pp::Module::Get()->get_browser_interface()
51 */ 51 */
52 void nacl_io_init_ppapi(PP_Instance instance, PPB_GetInterface get_interface); 52 void nacl_io_init_ppapi(PP_Instance instance, PPB_GetInterface get_interface);
53 53
54 /**
55 * Uninitialize nacl_io.
56 *
57 * This removes interception for POSIX C-library function and releases
58 * any associated resources.
59 */
60 void nacl_io_uninit();
61
54 void nacl_io_set_exit_callback(nacl_io_exit_callback_t exit_callback, 62 void nacl_io_set_exit_callback(nacl_io_exit_callback_t exit_callback,
55 void* user_data); 63 void* user_data);
56 64
57 /** 65 /**
58 * Mount a new filesystem type. 66 * Mount a new filesystem type.
59 * 67 *
60 * This function is declared in <sys/mount.h>, but we document it here 68 * This function is declared in <sys/mount.h>, but we document it here
61 * because nacl_io is controlled primarily through mount(2)/umount(2). 69 * because nacl_io is controlled primarily through mount(2)/umount(2).
62 * 70 *
63 * Some parameters are dependent on the filesystem type being mounted. 71 * Some parameters are dependent on the filesystem type being mounted.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 * @param[in] callback The callback to set, or NULL. 213 * @param[in] callback The callback to set, or NULL.
206 * @param[in] user_data User data that will be passed to the callback. 214 * @param[in] user_data User data that will be passed to the callback.
207 * @return 0 on success, -1 on failure. 215 * @return 0 on success, -1 on failure.
208 */ 216 */
209 void nacl_io_set_mount_callback(nacl_io_mount_callback_t callback, 217 void nacl_io_set_mount_callback(nacl_io_mount_callback_t callback,
210 void* user_data); 218 void* user_data);
211 219
212 EXTERN_C_END 220 EXTERN_C_END
213 221
214 #endif /* LIBRARIES_NACL_IO_NACL_IO_H_ */ 222 #endif /* LIBRARIES_NACL_IO_NACL_IO_H_ */
OLDNEW
« no previous file with comments | « no previous file | 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