OLD | NEW |
---|---|
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_PUBLIC_CHROME_MAIN_H_ | 7 #ifndef NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ |
8 #define NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ 1 | 8 #define NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ 1 |
9 | 9 |
10 #include "native_client/src/include/build_config.h" | 10 #include "native_client/src/include/build_config.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
155 /* | 155 /* |
156 * Callback to use for requesting that a debug exception handler be | 156 * Callback to use for requesting that a debug exception handler be |
157 * attached to this process for handling hardware exceptions via the | 157 * attached to this process for handling hardware exceptions via the |
158 * Windows debug API. The data in info/info_size must be passed to | 158 * Windows debug API. The data in info/info_size must be passed to |
159 * NaClDebugExceptionHandlerRun(). Optional; may be NULL. | 159 * NaClDebugExceptionHandlerRun(). Optional; may be NULL. |
160 */ | 160 */ |
161 int (*attach_debug_exception_handler_func)(const void *info, | 161 int (*attach_debug_exception_handler_func)(const void *info, |
162 size_t info_size); | 162 size_t info_size); |
163 #endif | 163 #endif |
164 | 164 |
165 /* | |
166 * Callback to run when the initial module load status from a call to | |
167 * NaClChromeMainStart is known (load_status is a value from the | |
Mark Seaborn
2015/04/18 01:14:14
Can you also say that it's called from the thread
jvoung (off chromium)
2015/04/20 18:49:47
Good idea -- done.
| |
168 * NaClErrorCode enumeration and may indicate success or error). | |
Mark Seaborn
2015/04/18 01:14:14
Technically NaClErrorCode is not defined in src/pu
jvoung (off chromium)
2015/04/20 18:49:47
Done.
| |
169 */ | |
Mark Seaborn
2015/04/18 01:14:14
Add: "Optional; may be NULL" to follow the style o
jvoung (off chromium)
2015/04/20 18:49:47
Done.
| |
170 void (*load_status_handler_func)(int load_status); | |
171 | |
165 #if NACL_LINUX || NACL_OSX | 172 #if NACL_LINUX || NACL_OSX |
166 /* | 173 /* |
167 * The result of sysconf(_SC_NPROCESSORS_ONLN). The Chrome | 174 * The result of sysconf(_SC_NPROCESSORS_ONLN). The Chrome |
168 * outer-sandbox prevents the glibc implementation of sysconf from | 175 * outer-sandbox prevents the glibc implementation of sysconf from |
169 * working -- which just reads /proc/cpuinfo or similar file -- so | 176 * working -- which just reads /proc/cpuinfo or similar file -- so |
170 * instead, the launcher should fill this in. In principle this is | 177 * instead, the launcher should fill this in. In principle this is |
171 * optional and may be -1, but this will make | 178 * optional and may be -1, but this will make |
172 * sysconf(_SC_NPROCESSORS_ONLN) fail and result in some NaCl | 179 * sysconf(_SC_NPROCESSORS_ONLN) fail and result in some NaCl |
173 * modules failing. | 180 * modules failing. |
174 * | 181 * |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
253 * exit status. | 260 * exit status. |
254 * | 261 * |
255 * This is safer than exit(), which does some teardown that can cause running | 262 * This is safer than exit(), which does some teardown that can cause running |
256 * threads to crash. | 263 * threads to crash. |
257 */ | 264 */ |
258 void NaClExit(int code); | 265 void NaClExit(int code); |
259 | 266 |
260 EXTERN_C_END | 267 EXTERN_C_END |
261 | 268 |
262 #endif | 269 #endif |
OLD | NEW |