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

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

Issue 7605029: Extend IRT with nacl_irt_resource_open interface (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 4 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
OLDNEW
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
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_RESOURCE_OPEN_v0_1 "nacl-irt-resource-open-0.1"
147 struct nacl_irt_resource_open {
148 int (*open_resource)(const char* file, int *fd);
Roland McGrath 2011/08/16 17:32:50 'const char *file'. We don't use C++ style in C.
halyavin 2011/08/16 18:06:25 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 */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698