OLD | NEW |
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 |
11 #include "nacl_io/kernel_wrap.h" | 11 #include "nacl_io/kernel_wrap.h" |
12 #include "utils/macros.h" | 12 #include "sdk_util/macros.h" |
13 | 13 |
14 EXTERN_C_BEGIN | 14 EXTERN_C_BEGIN |
15 | 15 |
16 | 16 |
17 /** Initialize nacl_io. | 17 /** Initialize nacl_io. |
18 * | 18 * |
19 * NOTE: If you initialize nacl_io 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_io_init(); | 22 void nacl_io_init(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 * @param[in] mountflags Unused. | 108 * @param[in] mountflags Unused. |
109 * @param[in] data Depends on the filesystem type. See above. | 109 * @param[in] data Depends on the filesystem type. See above. |
110 * @return 0 on success, -1 on failure (with errno set). | 110 * @return 0 on success, -1 on failure (with errno set). |
111 */ | 111 */ |
112 int mount(const char* source, const char* target, const char* filesystemtype, | 112 int mount(const char* source, const char* target, const char* filesystemtype, |
113 unsigned long mountflags, const void *data) NOTHROW; | 113 unsigned long mountflags, const void *data) NOTHROW; |
114 | 114 |
115 EXTERN_C_END | 115 EXTERN_C_END |
116 | 116 |
117 #endif // LIBRARIES_NACL_IO_NACL_IO_H_ | 117 #endif // LIBRARIES_NACL_IO_NACL_IO_H_ |
OLD | NEW |