OLD | NEW |
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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" | 146 #define NACL_IRT_RESOURCE_OPEN_v0_1 "nacl-irt-resource-open-0.1" |
147 struct nacl_irt_resource_open { | 147 struct nacl_irt_resource_open { |
148 int (*open_resource)(const char *file, int *fd); | 148 int (*open_resource)(const char *file, int *fd); |
149 }; | 149 }; |
150 | 150 |
| 151 #define NACL_IRT_CLOCK_v0_1 "nacl-irt-clock_get-0.1" |
| 152 struct nacl_irt_clock { |
| 153 int (*getres)(clockid_t clk_id, struct timespec *res); |
| 154 int (*gettime)(clockid_t clk_id, struct timespec *tp); |
| 155 }; |
| 156 |
151 #if __cplusplus | 157 #if __cplusplus |
152 } | 158 } |
153 #endif | 159 #endif |
154 | 160 |
155 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ | 161 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ |
OLD | NEW |