| 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_TRUSTED_SERVICE_RUNTIME_NACL_DEBUG_INIT_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_DEBUG_INIT_H_ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_DEBUG_INIT_H_ 1 | 8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_DEBUG_INIT_H_ 1 |
| 9 | 9 |
| 10 #include "native_client/src/include/build_config.h" | 10 #include "native_client/src/include/build_config.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * already had bind() and listen() called on it. This tells the debug | 27 * already had bind() and listen() called on it. This tells the debug |
| 28 * stub to use the given descriptor rather than trying to bind() the | 28 * stub to use the given descriptor rather than trying to bind() the |
| 29 * default TCP port. | 29 * default TCP port. |
| 30 */ | 30 */ |
| 31 void NaClDebugSetBoundSocket(NaClSocketHandle bound_socket); | 31 void NaClDebugSetBoundSocket(NaClSocketHandle bound_socket); |
| 32 | 32 |
| 33 /* | 33 /* |
| 34 * NaClDebugStubSetPipe() takes a named pipe on windows or a socket | 34 * NaClDebugStubSetPipe() takes a named pipe on windows or a socket |
| 35 * pair descriptor on posix. This sets up the debug stub to talk over the | 35 * pair descriptor on posix. This sets up the debug stub to talk over the |
| 36 * pipe with chrome. | 36 * pipe with chrome. |
| 37 * TODO(leslieb): Implement for windows. |
| 37 */ | 38 */ |
| 38 void NaClDebugStubSetPipe(NaClHandle handle); | 39 void NaClDebugStubSetPipe(NaClHandle handle); |
| 39 | 40 |
| 40 /* | 41 /* |
| 41 * Enables the debug stub. If this is called, we do not guarantee | 42 * Enables the debug stub. If this is called, we do not guarantee |
| 42 * security to the same extent that we normally would. | 43 * security to the same extent that we normally would. |
| 43 */ | 44 */ |
| 44 int NaClDebugInit(struct NaClApp *nap); | 45 int NaClDebugInit(struct NaClApp *nap); |
| 45 | 46 |
| 46 /* | 47 /* |
| 47 * Returns the port bound in NaClDebugBindSocket() or NaClDebugSetBoundSocket(). | 48 * Returns the port bound in NaClDebugBindSocket() or NaClDebugSetBoundSocket(). |
| 48 * TODO(leslieb): remove when windows no longer needs the port information. | 49 * TODO(leslieb): remove when windows no longer needs the port information. |
| 49 */ | 50 */ |
| 50 #if NACL_WINDOWS | 51 #if NACL_WINDOWS |
| 51 uint16_t NaClDebugGetBoundPort(); | 52 uint16_t NaClDebugGetBoundPort(); |
| 52 #endif | 53 #endif |
| 53 | 54 |
| 54 EXTERN_C_END | 55 EXTERN_C_END |
| 55 | 56 |
| 56 #endif | 57 #endif |
| OLD | NEW |