Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ | 6 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ |
| 7 #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ | 7 #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ |
| 8 | 8 |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <sys/types.h> | 10 #include <sys/types.h> |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 136 struct nacl_irt_blockhook { | 136 struct nacl_irt_blockhook { |
| 137 int (*register_block_hooks)(void (*pre)(void), void (*post)(void)); | 137 int (*register_block_hooks)(void (*pre)(void), void (*post)(void)); |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 #define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1" | 140 #define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1" |
| 141 struct nacl_irt_ppapihook { | 141 struct nacl_irt_ppapihook { |
| 142 int (*ppapi_start)(const struct PP_StartFunctions *); | 142 int (*ppapi_start)(const struct PP_StartFunctions *); |
| 143 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions *); | 143 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions *); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 #define NACL_IRT_MANIFEST_OPEN_v0_0 "nacl-irt-manifest-0.0" | |
|
Roland McGrath
2011/08/12 16:44:56
This is not the best name for this interface. It
halyavin
2011/08/15 10:35:52
Done.
| |
| 147 struct nacl_irt_manifest_open { | |
| 148 int (*open_file_in_manifest)(const char* file); | |
|
Roland McGrath
2011/08/12 16:44:56
This is C, not C++, and uses normal C style: 'cons
halyavin
2011/08/15 10:35:52
Done.
| |
| 149 }; | |
| 150 | |
| 146 #if __cplusplus | 151 #if __cplusplus |
| 147 } | 152 } |
| 148 #endif | 153 #endif |
| 149 | 154 |
| 150 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ | 155 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ |
| OLD | NEW |