OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_NACL_LOADER_NONSFI_IRT_INTERFACES_H_ | 5 #ifndef COMPONENTS_NACL_LOADER_NONSFI_IRT_INTERFACES_H_ |
6 #define COMPONENTS_NACL_LOADER_NONSFI_IRT_INTERFACES_H_ | 6 #define COMPONENTS_NACL_LOADER_NONSFI_IRT_INTERFACES_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "native_client/src/untrusted/irt/irt.h" | 9 #include "native_client/src/untrusted/irt/irt.h" |
10 #include "ppapi/nacl_irt/public/irt_nonsfi.h" | |
11 #include "ppapi/nacl_irt/public/irt_ppapi.h" | 10 #include "ppapi/nacl_irt/public/irt_ppapi.h" |
12 | 11 |
13 namespace nacl { | 12 namespace nacl { |
14 namespace nonsfi { | 13 namespace nonsfi { |
15 | 14 |
16 size_t NaClIrtInterface(const char* interface_ident, | 15 size_t NaClIrtInterface(const char* interface_ident, |
17 void* table, size_t tablesize); | 16 void* table, size_t tablesize); |
18 | 17 |
19 extern const struct nacl_irt_basic kIrtBasic; | 18 extern const struct nacl_irt_basic kIrtBasic; |
20 extern const struct nacl_irt_fdio kIrtFdIO; | 19 extern const struct nacl_irt_fdio kIrtFdIO; |
21 extern const struct nacl_irt_memory kIrtMemory; | 20 extern const struct nacl_irt_memory kIrtMemory; |
22 extern const struct nacl_irt_thread kIrtThread; | 21 extern const struct nacl_irt_thread kIrtThread; |
23 extern const struct nacl_irt_futex kIrtFutex; | 22 extern const struct nacl_irt_futex kIrtFutex; |
24 extern const struct nacl_irt_tls kIrtTls; | 23 extern const struct nacl_irt_tls kIrtTls; |
25 extern const struct nacl_irt_clock kIrtClock; | 24 extern const struct nacl_irt_clock kIrtClock; |
26 extern const struct nacl_irt_ppapihook kIrtPpapiHook; | 25 extern const struct nacl_irt_ppapihook kIrtPpapiHook; |
27 extern const struct nacl_irt_resource_open kIrtResourceOpen; | 26 extern const struct nacl_irt_resource_open kIrtResourceOpen; |
28 extern const struct nacl_irt_random kIrtRandom; | 27 extern const struct nacl_irt_random kIrtRandom; |
29 extern const struct nacl_irt_exception_handling kIrtExceptionHandling; | 28 extern const struct nacl_irt_exception_handling kIrtExceptionHandling; |
30 extern const struct nacl_irt_icache kIrtIcache; | 29 extern const struct nacl_irt_icache kIrtIcache; |
31 | 30 |
32 } // namespace nonsfi | 31 } // namespace nonsfi |
33 } // namespace nacl | 32 } // namespace nacl |
34 | 33 |
35 #endif // COMPONENTS_NACL_LOADER_NONSFI_IRT_INTERFACES_H_ | 34 #endif // COMPONENTS_NACL_LOADER_NONSFI_IRT_INTERFACES_H_ |
OLD | NEW |