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

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

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace Created 7 years, 10 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 | Annotate | Revision Log
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_MOUNTS_NACL_MOUNTS_H_ 5 #ifndef LIBRARIES_NACL_IO_NACL_IO_H_
6 #define LIBRARIES_NACL_MOUNTS_NACL_MOUNTS_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
11 #include "nacl_mounts/kernel_wrap.h" 11 #include "nacl_io/kernel_wrap.h"
12 #include "utils/macros.h" 12 #include "utils/macros.h"
13 13
14 EXTERN_C_BEGIN 14 EXTERN_C_BEGIN
15 15
16 16
17 /** Initialize nacl_mounts. 17 /** Initialize nacl_io.
18 * 18 *
19 * NOTE: If you initialize nacl_mounts with this constructor, you cannot 19 * NOTE: If you initialize nacl_io with this constructor, you cannot
20 * use any mounts that require PPAPI; e.g. persistent storage, etc. 20 * use any mounts that require PPAPI; e.g. persistent storage, etc.
21 */ 21 */
22 void nacl_mounts_init(); 22 void nacl_io_init();
23 23
24 /** Initialize nacl_mounts with PPAPI support. 24 /** Initialize nacl_io with PPAPI support.
25 * 25 *
26 * Usage: 26 * Usage:
27 * PP_Instance instance; 27 * PP_Instance instance;
28 * PPB_GetInterface get_interface; 28 * PPB_GetInterface get_interface;
29 * nacl_mounts_init(instance, get_interface); 29 * nacl_io_init(instance, get_interface);
30 * 30 *
31 * If you are using the PPAPI C interface: 31 * If you are using the PPAPI C interface:
32 * |instance| is passed to your instance in the DidCreate function. 32 * |instance| is passed to your instance in the DidCreate function.
33 * |get_interface| is passed to your module in the PPP_InitializeModule 33 * |get_interface| is passed to your module in the PPP_InitializeModule
34 * function. 34 * function.
35 * 35 *
36 * If you are using the PPAPI C++ interface: 36 * If you are using the PPAPI C++ interface:
37 * |instance| can be retrieved via the pp::Instance::pp_instance() method. 37 * |instance| can be retrieved via the pp::Instance::pp_instance() method.
38 * |get_interface| can be retrieved via 38 * |get_interface| can be retrieved via
39 * pp::Module::Get()->get_browser_interface() 39 * pp::Module::Get()->get_browser_interface()
40 */ 40 */
41 void nacl_mounts_init_ppapi(PP_Instance instance, 41 void nacl_io_init_ppapi(PP_Instance instance,
42 PPB_GetInterface get_interface); 42 PPB_GetInterface get_interface);
43 43
44 44
45 /** Mount a new filesystem type. 45 /** Mount a new filesystem type.
46 * 46 *
47 * Some parameters are dependent on the filesystem type being mounted. 47 * Some parameters are dependent on the filesystem type being mounted.
48 * 48 *
49 * The |data| parameter, if used, is always parsed as a string of comma 49 * The |data| parameter, if used, is always parsed as a string of comma
50 * separated key-value pairs: 50 * separated key-value pairs:
51 * e.g. "key1=param1,key2=param2" 51 * e.g. "key1=param1,key2=param2"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 * above for examples. 101 * above for examples.
102 * @param[in] mountflags Unused. 102 * @param[in] mountflags Unused.
103 * @param[in] data Depends on the filesystem type. See above. 103 * @param[in] data Depends on the filesystem type. See above.
104 * @return 0 on success, -1 on failure (with errno set). 104 * @return 0 on success, -1 on failure (with errno set).
105 */ 105 */
106 int mount(const char* source, const char* target, const char* filesystemtype, 106 int mount(const char* source, const char* target, const char* filesystemtype,
107 unsigned long mountflags, const void *data) NOTHROW; 107 unsigned long mountflags, const void *data) NOTHROW;
108 108
109 EXTERN_C_END 109 EXTERN_C_END
110 110
111 #endif // LIBRARIES_NACL_MOUNTS_NACL_MOUNTS_H_ 111 #endif // LIBRARIES_NACL_IO_NACL_IO_H_
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_node_mem.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