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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 #define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1" | 149 #define NACL_IRT_PPAPIHOOK_v0_1 "nacl-irt-ppapihook-0.1" |
150 #define NACL_IRT_PPAPIHOOK_SHIMMED_v0_1 "nacl-irt-ppapihook-shimmed-0.1" | |
jvoung (off chromium)
2012/08/27 21:53:58
I think Roland recommended to having this in irt.h
Robert Muth (chromium)
2012/08/28 14:18:01
Done.
| |
150 struct nacl_irt_ppapihook { | 151 struct nacl_irt_ppapihook { |
151 int (*ppapi_start)(const struct PP_StartFunctions *); | 152 int (*ppapi_start)(const struct PP_StartFunctions *); |
152 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions *); | 153 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions *); |
153 }; | 154 }; |
154 | 155 |
155 #define NACL_IRT_RESOURCE_OPEN_v0_1 "nacl-irt-resource-open-0.1" | 156 #define NACL_IRT_RESOURCE_OPEN_v0_1 "nacl-irt-resource-open-0.1" |
156 struct nacl_irt_resource_open { | 157 struct nacl_irt_resource_open { |
157 int (*open_resource)(const char *file, int *fd); | 158 int (*open_resource)(const char *file, int *fd); |
158 }; | 159 }; |
159 | 160 |
(...skipping 20 matching lines...) Expand all Loading... | |
180 NaClExceptionHandler *old_handler); | 181 NaClExceptionHandler *old_handler); |
181 int (*exception_stack)(void *stack, size_t size); | 182 int (*exception_stack)(void *stack, size_t size); |
182 int (*exception_clear_flag)(void); | 183 int (*exception_clear_flag)(void); |
183 }; | 184 }; |
184 | 185 |
185 #if defined(__cplusplus) | 186 #if defined(__cplusplus) |
186 } | 187 } |
187 #endif | 188 #endif |
188 | 189 |
189 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ | 190 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ |
OLD | NEW |