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

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

Issue 25027006: Stackable IRT Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 2 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 | « src/untrusted/irt/irt_instance.c ('k') | src/untrusted/irt/irt_interfaces.c » ('j') | no next file with comments »
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_INTERFACES_H_ 6 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_INTERFACES_H_
7 #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_INTERFACES_H_ 7 #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_INTERFACES_H_
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 10
11 #include "native_client/src/untrusted/irt/irt.h"
12
13 /*
14 struct nacl_irt_module {
15 void (*module_init)(void);
16 void (*module_fini)(void);
17 };
18
19 extern __attribute__((weak)) struct nacl_irt_module nacl_irt_array[];
20
21 typedef TYPE_nacl_irt_query (*TYPE_nacl_irt_module_ctor)(
22 TYPE_nacl_irt_query irt_query);
23
24 extern int nacl_irt_module_register(TYPE_nacl_irt_module_ctor ctor);
25 extern int nacl_irt_interface_set(const char *interface_ident,
26 void *table, size_t tablesize, void *old_table );
27 */
28
11 extern size_t nacl_irt_interface(const char *interface_ident, 29 extern size_t nacl_irt_interface(const char *interface_ident,
12 void *table, size_t tablesize); 30 void *table, size_t tablesize);
13 31
14 extern const struct nacl_irt_basic nacl_irt_basic; 32 extern const struct nacl_irt_basic nacl_irt_basic;
15 extern const struct nacl_irt_fdio nacl_irt_fdio; 33 extern const struct nacl_irt_fdio nacl_irt_fdio;
16 extern const struct nacl_irt_filename nacl_irt_filename; 34 extern const struct nacl_irt_filename nacl_irt_filename;
17 extern const struct nacl_irt_dev_filename_v0_2 nacl_irt_dev_filename; 35 extern const struct nacl_irt_dev_filename_v0_2 nacl_irt_dev_filename;
18 extern const struct nacl_irt_memory_v0_1 nacl_irt_memory_v0_1; 36 extern const struct nacl_irt_memory_v0_1 nacl_irt_memory_v0_1;
19 extern const struct nacl_irt_memory_v0_2 nacl_irt_memory_v0_2; 37 extern const struct nacl_irt_memory_v0_2 nacl_irt_memory_v0_2;
20 extern const struct nacl_irt_memory nacl_irt_memory; 38 extern const struct nacl_irt_memory nacl_irt_memory;
21 extern const struct nacl_irt_dyncode nacl_irt_dyncode; 39 extern const struct nacl_irt_dyncode nacl_irt_dyncode;
22 extern const struct nacl_irt_thread nacl_irt_thread; 40 extern const struct nacl_irt_thread nacl_irt_thread;
23 extern const struct nacl_irt_futex nacl_irt_futex; 41 extern const struct nacl_irt_futex nacl_irt_futex;
24 extern const struct nacl_irt_mutex nacl_irt_mutex; 42 extern const struct nacl_irt_mutex nacl_irt_mutex;
25 extern const struct nacl_irt_cond nacl_irt_cond; 43 extern const struct nacl_irt_cond nacl_irt_cond;
26 extern const struct nacl_irt_sem nacl_irt_sem; 44 extern const struct nacl_irt_sem nacl_irt_sem;
27 extern const struct nacl_irt_tls nacl_irt_tls; 45 extern const struct nacl_irt_tls nacl_irt_tls;
28 extern const struct nacl_irt_blockhook nacl_irt_blockhook; 46 extern const struct nacl_irt_blockhook nacl_irt_blockhook;
29 extern const struct nacl_irt_ppapihook nacl_irt_ppapihook; 47 extern const struct nacl_irt_ppapihook nacl_irt_ppapihook;
30 extern const struct nacl_irt_resource_open nacl_irt_resource_open; 48 extern const struct nacl_irt_resource_open nacl_irt_resource_open;
31 extern const struct nacl_irt_random nacl_irt_random; 49 extern const struct nacl_irt_random nacl_irt_random;
32 extern const struct nacl_irt_clock nacl_irt_clock; 50 extern const struct nacl_irt_clock nacl_irt_clock;
33 extern const struct nacl_irt_dev_getpid nacl_irt_dev_getpid; 51 extern const struct nacl_irt_dev_getpid nacl_irt_dev_getpid;
34 extern const struct nacl_irt_exception_handling nacl_irt_exception_handling; 52 extern const struct nacl_irt_exception_handling nacl_irt_exception_handling;
35 extern const struct nacl_irt_dev_list_mappings nacl_irt_dev_list_mappings; 53 extern const struct nacl_irt_dev_list_mappings nacl_irt_dev_list_mappings;
54 extern const struct nacl_irt_instance nacl_irt_instance;
36 55
37 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_INTERFACES_H_ */ 56 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_INTERFACES_H_ */
OLDNEW
« no previous file with comments | « src/untrusted/irt/irt_instance.c ('k') | src/untrusted/irt/irt_interfaces.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698