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

Side by Side Diff: src/trusted/reverse_service/reverse_service_c.h

Issue 15039022: Enable meta-based validation for shared libraries. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Style Created 7 years, 7 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) 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 6
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_REVERSE_SERVICE_C_H_ 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_REVERSE_SERVICE_C_H_
8 #define NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_REVERSE_SERVICE_C_H_ 8 #define NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_REVERSE_SERVICE_C_H_
9 9
10 #include "native_client/src/include/nacl_base.h" 10 #include "native_client/src/include/nacl_base.h"
11 #include "native_client/src/include/portability.h" 11 #include "native_client/src/include/portability.h"
12 12
13 #include "native_client/src/trusted/desc/nacl_desc_base.h" 13 #include "native_client/src/trusted/desc/nacl_desc_base.h"
14 14
15 #include "native_client/src/trusted/nacl_base/nacl_refcount.h" 15 #include "native_client/src/trusted/nacl_base/nacl_refcount.h"
16 #include "native_client/src/trusted/threading/nacl_thread_interface.h" 16 #include "native_client/src/trusted/threading/nacl_thread_interface.h"
17 17
18 #include "native_client/src/trusted/simple_service/nacl_simple_rservice.h" 18 #include "native_client/src/trusted/simple_service/nacl_simple_rservice.h"
19 19
20 EXTERN_C_BEGIN 20 EXTERN_C_BEGIN
21 21
22 struct NaClFileInfo;
22 struct NaClReverseInterface; 23 struct NaClReverseInterface;
23 struct NaClReverseInterfaceVtbl; 24 struct NaClReverseInterfaceVtbl;
24 25
25 struct NaClReverseService { 26 struct NaClReverseService {
26 struct NaClSimpleRevService base NACL_IS_REFCOUNT_SUBCLASS; 27 struct NaClSimpleRevService base NACL_IS_REFCOUNT_SUBCLASS;
27 28
28 struct NaClReverseInterface *iface; 29 struct NaClReverseInterface *iface;
29 30
30 struct NaClMutex mu; 31 struct NaClMutex mu;
31 struct NaClCondVar cv; 32 struct NaClCondVar cv;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 size_t buffer_bytes); 120 size_t buffer_bytes);
120 121
121 /* 122 /*
122 * Opens manifest entry specified by |url_key|. Returns 1 if 123 * Opens manifest entry specified by |url_key|. Returns 1 if
123 * successful and stores the file descriptor in |out_desc|, otherwise 124 * successful and stores the file descriptor in |out_desc|, otherwise
124 * returns 0. 125 * returns 0.
125 */ 126 */
126 int (*OpenManifestEntry)( 127 int (*OpenManifestEntry)(
127 struct NaClReverseInterface *self, 128 struct NaClReverseInterface *self,
128 char const *url_key, 129 char const *url_key,
129 int32_t *out_desc); 130 struct NaClFileInfo *info);
130 131
131 /* 132 /*
132 * Closes manifest entry with file descriptor |desc|. Returns 1 if 133 * Closes manifest entry with file descriptor |desc|. Returns 1 if
133 * successful, 0 otherwise. 134 * successful, 0 otherwise.
134 */ 135 */
135 int (*CloseManifestEntry)( 136 int (*CloseManifestEntry)(
136 struct NaClReverseInterface *self, 137 struct NaClReverseInterface *self,
137 int32_t desc); 138 int32_t desc);
138 139
139 /* 140 /*
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 struct NaClReverseInterface *self); 226 struct NaClReverseInterface *self);
226 227
227 size_t NaClReverseInterfaceEnumerateManifestKeys( 228 size_t NaClReverseInterfaceEnumerateManifestKeys(
228 struct NaClReverseInterface *self, 229 struct NaClReverseInterface *self,
229 char *buffer, 230 char *buffer,
230 size_t buffer_bytes); 231 size_t buffer_bytes);
231 232
232 int NaClReverseInterfaceOpenManifestEntry( 233 int NaClReverseInterfaceOpenManifestEntry(
233 struct NaClReverseInterface *self, 234 struct NaClReverseInterface *self,
234 char const *url_key, 235 char const *url_key,
235 int32_t *out_desc); 236 struct NaClFileInfo *info);
236 237
237 int NaClReverseInterfaceCloseManifestEntry( 238 int NaClReverseInterfaceCloseManifestEntry(
238 struct NaClReverseInterface *self, 239 struct NaClReverseInterface *self,
239 int32_t desc); 240 int32_t desc);
240 241
241 void NaClReverseInterfaceReportCrash( 242 void NaClReverseInterfaceReportCrash(
242 struct NaClReverseInterface *self); 243 struct NaClReverseInterface *self);
243 244
244 void NaClReverseInterfaceReportExitStatus( 245 void NaClReverseInterfaceReportExitStatus(
245 struct NaClReverseInterface *self, 246 struct NaClReverseInterface *self,
(...skipping 24 matching lines...) Expand all
270 struct NaClReverseInterface *self, 271 struct NaClReverseInterface *self,
271 char const *file_id, 272 char const *file_id,
272 int64_t offset, 273 int64_t offset,
273 int64_t length); 274 int64_t length);
274 275
275 extern struct NaClReverseInterfaceVtbl const kNaClReverseInterfaceVtbl; 276 extern struct NaClReverseInterfaceVtbl const kNaClReverseInterfaceVtbl;
276 277
277 EXTERN_C_END 278 EXTERN_C_END
278 279
279 #endif /* NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_REVERSE_SERVICE_C_H_ */ 280 #endif /* NATIVE_CLIENT_SRC_TRUSTED_REVERSE_SERVICE_REVERSE_SERVICE_C_H_ */
OLDNEW
« no previous file with comments | « src/trusted/reverse_service/reverse_service.gyp ('k') | src/trusted/reverse_service/reverse_service_c.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698