OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 struct nacl_irt_tls { | 139 struct nacl_irt_tls { |
140 int (*tls_init)(void *thread_ptr); | 140 int (*tls_init)(void *thread_ptr); |
141 void *(*tls_get)(void); | 141 void *(*tls_get)(void); |
142 }; | 142 }; |
143 | 143 |
144 #define NACL_IRT_BLOCKHOOK_v0_1 "nacl-irt-blockhook-0.1" | 144 #define NACL_IRT_BLOCKHOOK_v0_1 "nacl-irt-blockhook-0.1" |
145 struct nacl_irt_blockhook { | 145 struct nacl_irt_blockhook { |
146 int (*register_block_hooks)(void (*pre)(void), void (*post)(void)); | 146 int (*register_block_hooks)(void (*pre)(void), void (*post)(void)); |
147 }; | 147 }; |
148 | 148 |
| 149 /* These should be kept in sync, both are using the nacl_irt_ppapihook API. */ |
149 #define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1" | 150 #define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1" |
| 151 #define NACL_IRT_PPAPIHOOK_SHIMMED_v0_1 "nacl-irt-ppapihook-shimmed-0.1" |
150 struct nacl_irt_ppapihook { | 152 struct nacl_irt_ppapihook { |
151 int (*ppapi_start)(const struct PP_StartFunctions *); | 153 int (*ppapi_start)(const struct PP_StartFunctions *); |
152 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions *); | 154 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions *); |
153 }; | 155 }; |
154 | 156 |
155 #define NACL_IRT_RESOURCE_OPEN_v0_1 "nacl-irt-resource-open-0.1" | 157 #define NACL_IRT_RESOURCE_OPEN_v0_1 "nacl-irt-resource-open-0.1" |
156 struct nacl_irt_resource_open { | 158 struct nacl_irt_resource_open { |
157 int (*open_resource)(const char *file, int *fd); | 159 int (*open_resource)(const char *file, int *fd); |
158 }; | 160 }; |
159 | 161 |
(...skipping 20 matching lines...) Expand all Loading... |
180 NaClExceptionHandler *old_handler); | 182 NaClExceptionHandler *old_handler); |
181 int (*exception_stack)(void *stack, size_t size); | 183 int (*exception_stack)(void *stack, size_t size); |
182 int (*exception_clear_flag)(void); | 184 int (*exception_clear_flag)(void); |
183 }; | 185 }; |
184 | 186 |
185 #if defined(__cplusplus) | 187 #if defined(__cplusplus) |
186 } | 188 } |
187 #endif | 189 #endif |
188 | 190 |
189 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ | 191 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ |
OLD | NEW |