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_KERNEL_INTERCEPT_H_ | 5 #ifndef LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ |
6 #define LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ | 6 #define LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ |
7 | 7 |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <sys/time.h> | 9 #include <sys/time.h> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... | |
26 // The kernel intercept module provides a C->C++ thunk between the libc | 26 // The kernel intercept module provides a C->C++ thunk between the libc |
27 // kernel calls and the KernelProxy singleton. | 27 // kernel calls and the KernelProxy singleton. |
28 | 28 |
29 // ki_init must be called with an uninitialized KernelProxy object. Calling | 29 // ki_init must be called with an uninitialized KernelProxy object. Calling |
30 // with NULL will instantiate a default kernel proxy object. ki_init must | 30 // with NULL will instantiate a default kernel proxy object. ki_init must |
31 // be called before any other ki_XXX function can be used. | 31 // be called before any other ki_XXX function can be used. |
32 void ki_init(void* kernel_proxy); | 32 void ki_init(void* kernel_proxy); |
33 void ki_init_ppapi(void* kernel_proxy, | 33 void ki_init_ppapi(void* kernel_proxy, |
34 PP_Instance instance, | 34 PP_Instance instance, |
35 PPB_GetInterface get_browser_interface); | 35 PPB_GetInterface get_browser_interface); |
36 void ki_init_interface(void* kp, void* pepper_interface); | |
binji
2014/01/28 18:13:22
Add a doc comment for this; it is useful to know t
Sam Clegg
2014/01/28 19:55:22
Done.
| |
37 | |
36 int ki_register_fs_type(const char* fs_type, struct fuse_operations* fuse_ops); | 38 int ki_register_fs_type(const char* fs_type, struct fuse_operations* fuse_ops); |
37 int ki_unregister_fs_type(const char* fs_type); | 39 int ki_unregister_fs_type(const char* fs_type); |
38 int ki_is_initialized(); | 40 int ki_is_initialized(); |
39 void ki_uninit(); | 41 void ki_uninit(); |
40 | 42 |
41 int ki_chdir(const char* path); | 43 int ki_chdir(const char* path); |
42 char* ki_getcwd(char* buf, size_t size); | 44 char* ki_getcwd(char* buf, size_t size); |
43 char* ki_getwd(char* buf); | 45 char* ki_getwd(char* buf); |
44 int ki_dup(int oldfd); | 46 int ki_dup(int oldfd); |
45 int ki_dup2(int oldfd, int newfd); | 47 int ki_dup2(int oldfd, int newfd); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 int ki_setsockopt(int fd, int lvl, int optname, const void* optval, | 126 int ki_setsockopt(int fd, int lvl, int optname, const void* optval, |
125 socklen_t len); | 127 socklen_t len); |
126 int ki_shutdown(int fd, int how); | 128 int ki_shutdown(int fd, int how); |
127 int ki_socket(int domain, int type, int protocol); | 129 int ki_socket(int domain, int type, int protocol); |
128 int ki_socketpair(int domain, int type, int protocl, int* sv); | 130 int ki_socketpair(int domain, int type, int protocl, int* sv); |
129 #endif // PROVIDES_SOCKET_API | 131 #endif // PROVIDES_SOCKET_API |
130 | 132 |
131 EXTERN_C_END | 133 EXTERN_C_END |
132 | 134 |
133 #endif // LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ | 135 #endif // LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ |
OLD | NEW |