Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: src/untrusted/irt/irt.h

Issue 10826171: Incorporate shimming into the irt (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/untrusted/irt/irt_interfaces.h » ('j') | src/untrusted/irt/irt_interfaces.c » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « no previous file | src/untrusted/irt/irt_interfaces.h » ('j') | src/untrusted/irt/irt_interfaces.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698