Chromium Code Reviews| 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 26 matching lines...) Expand all Loading... | |
| 37 /* | 37 /* |
| 38 * ki_init must be called with an uninitialized KernelProxy object. Calling | 38 * ki_init must be called with an uninitialized KernelProxy object. Calling |
| 39 * with NULL will instantiate a default kernel proxy object. ki_init must | 39 * with NULL will instantiate a default kernel proxy object. ki_init must |
| 40 * be called before any other ki_XXX function can be used. | 40 * be called before any other ki_XXX function can be used. |
| 41 */ | 41 */ |
| 42 int ki_init(void* kernel_proxy); | 42 int ki_init(void* kernel_proxy); |
| 43 | 43 |
| 44 /* | 44 /* |
| 45 * Saves the current internal state. This is used by test code which can | 45 * Saves the current internal state. This is used by test code which can |
| 46 * use this to save the current state before calling ki_init(). The | 46 * use this to save the current state before calling ki_init(). The |
| 47 * pushed state is restored in the next call to ki_uninit(). | 47 * pushed state is restored in the next call to ki_uninit(). |
|
binji
2014/08/20 18:13:35
or by calling ki_pop_state_for_testing().
Sam Clegg
2014/08/21 10:19:34
Done.
| |
| 48 */ | 48 */ |
| 49 int ki_push_state_for_testing(void); | 49 int ki_push_state_for_testing(void); |
| 50 | 50 |
| 51 int ki_pop_state_for_testing(void); | |
| 52 | |
| 51 int ki_init_ppapi(void* kernel_proxy, | 53 int ki_init_ppapi(void* kernel_proxy, |
| 52 PP_Instance instance, | 54 PP_Instance instance, |
| 53 PPB_GetInterface get_browser_interface); | 55 PPB_GetInterface get_browser_interface); |
| 54 | 56 |
| 55 /* | 57 /* |
| 56 * ki_init_interface() is a variant of ki_init() that can be called with | 58 * ki_init_interface() is a variant of ki_init() that can be called with |
| 57 * a PepperInterface object. | 59 * a PepperInterface object. |
| 58 */ | 60 */ |
| 59 int ki_init_interface(void* kernel_proxy, void* pepper_interface); | 61 int ki_init_interface(void* kernel_proxy, void* pepper_interface); |
| 60 | 62 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 178 const void* optval, | 180 const void* optval, |
| 179 socklen_t len); | 181 socklen_t len); |
| 180 int ki_shutdown(int fd, int how); | 182 int ki_shutdown(int fd, int how); |
| 181 int ki_socket(int domain, int type, int protocol); | 183 int ki_socket(int domain, int type, int protocol); |
| 182 int ki_socketpair(int domain, int type, int protocl, int* sv); | 184 int ki_socketpair(int domain, int type, int protocl, int* sv); |
| 183 #endif /* PROVIDES_SOCKET_API */ | 185 #endif /* PROVIDES_SOCKET_API */ |
| 184 | 186 |
| 185 EXTERN_C_END | 187 EXTERN_C_END |
| 186 | 188 |
| 187 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ | 189 #endif /* LIBRARIES_NACL_IO_KERNEL_INTERCEPT_H_ */ |
| OLD | NEW |