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/nacl_base.h" | 10 #include "native_client/src/include/nacl_base.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 #if NACL_LINUX || NACL_OSX | 94 #if NACL_LINUX || NACL_OSX |
95 /* | 95 /* |
96 * Server socket that will be used by debug stub to accept connections | 96 * Server socket that will be used by debug stub to accept connections |
97 * from NaCl GDB. This socket descriptor has already had bind() and listen() | 97 * from NaCl GDB. This socket descriptor has already had bind() and listen() |
98 * called on it. Optional; may be -1. | 98 * called on it. Optional; may be -1. |
99 */ | 99 */ |
100 int debug_stub_server_bound_socket_fd; | 100 int debug_stub_server_bound_socket_fd; |
101 #endif | 101 #endif |
102 | 102 |
103 /* | 103 /* |
| 104 * Callback called when debug stub port is known. Optional; may be NULL. |
| 105 */ |
| 106 void (*debug_stub_server_port_selected_handler_func)(uint16_t port); |
| 107 |
| 108 /* |
104 * Callback to use for creating shared memory objects. Optional; | 109 * Callback to use for creating shared memory objects. Optional; |
105 * may be NULL. | 110 * may be NULL. |
106 */ | 111 */ |
107 NaClCreateMemoryObjectFunc create_memory_object_func; | 112 NaClCreateMemoryObjectFunc create_memory_object_func; |
108 | 113 |
109 /* Cache for NaCl validation judgements. Optional; may be NULL. */ | 114 /* Cache for NaCl validation judgements. Optional; may be NULL. */ |
110 struct NaClValidationCache *validation_cache; | 115 struct NaClValidationCache *validation_cache; |
111 | 116 |
112 #if NACL_WINDOWS | 117 #if NACL_WINDOWS |
113 /* | 118 /* |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 /* | 199 /* |
195 * DEPRECATED. Calls NaClChromeMainLoad and NaClChromeMainStart. | 200 * DEPRECATED. Calls NaClChromeMainLoad and NaClChromeMainStart. |
196 * TODO(teravest): Remove this old interface after current users are migrated. | 201 * TODO(teravest): Remove this old interface after current users are migrated. |
197 */ | 202 */ |
198 void NaClChromeMainStartApp(struct NaClApp *nap, | 203 void NaClChromeMainStartApp(struct NaClApp *nap, |
199 struct NaClChromeMainArgs *args); | 204 struct NaClChromeMainArgs *args); |
200 | 205 |
201 EXTERN_C_END | 206 EXTERN_C_END |
202 | 207 |
203 #endif | 208 #endif |
OLD | NEW |