| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "bin/io_natives.h" | 5 #include "bin/io_natives.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 V(SecureSocket_FilterPointer, 1) \ | 109 V(SecureSocket_FilterPointer, 1) \ |
| 110 V(SecureSocket_GetSelectedProtocol, 1) \ | 110 V(SecureSocket_GetSelectedProtocol, 1) \ |
| 111 V(SecureSocket_Handshake, 1) \ | 111 V(SecureSocket_Handshake, 1) \ |
| 112 V(SecureSocket_Init, 1) \ | 112 V(SecureSocket_Init, 1) \ |
| 113 V(SecureSocket_PeerCertificate, 1) \ | 113 V(SecureSocket_PeerCertificate, 1) \ |
| 114 V(SecureSocket_RegisterBadCertificateCallback, 2) \ | 114 V(SecureSocket_RegisterBadCertificateCallback, 2) \ |
| 115 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ | 115 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ |
| 116 V(SecureSocket_Renegotiate, 4) \ | 116 V(SecureSocket_Renegotiate, 4) \ |
| 117 V(SecurityContext_Allocate, 1) \ | 117 V(SecurityContext_Allocate, 1) \ |
| 118 V(SecurityContext_UsePrivateKeyBytes, 3) \ | 118 V(SecurityContext_UsePrivateKeyBytes, 3) \ |
| 119 V(SecurityContext_AlpnSupported, 0) \ | |
| 120 V(SecurityContext_SetAlpnProtocols, 3) \ | 119 V(SecurityContext_SetAlpnProtocols, 3) \ |
| 121 V(SecurityContext_SetClientAuthoritiesBytes, 3) \ | 120 V(SecurityContext_SetClientAuthoritiesBytes, 3) \ |
| 122 V(SecurityContext_SetTrustedCertificatesBytes, 3) \ | 121 V(SecurityContext_SetTrustedCertificatesBytes, 3) \ |
| 123 V(SecurityContext_TrustBuiltinRoots, 1) \ | 122 V(SecurityContext_TrustBuiltinRoots, 1) \ |
| 124 V(SecurityContext_UseCertificateChainBytes, 3) \ | 123 V(SecurityContext_UseCertificateChainBytes, 3) \ |
| 125 V(ServerSocket_Accept, 2) \ | 124 V(ServerSocket_Accept, 2) \ |
| 126 V(ServerSocket_CreateBindListen, 6) \ | 125 V(ServerSocket_CreateBindListen, 6) \ |
| 127 V(SocketBase_IsBindError, 2) \ | 126 V(SocketBase_IsBindError, 2) \ |
| 128 V(Socket_Available, 1) \ | 127 V(Socket_Available, 1) \ |
| 129 V(Socket_CreateBindConnect, 4) \ | 128 V(Socket_CreateBindConnect, 4) \ |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 struct NativeEntries* entry = &(IOEntries[i]); | 205 struct NativeEntries* entry = &(IOEntries[i]); |
| 207 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 206 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
| 208 return reinterpret_cast<const uint8_t*>(entry->name_); | 207 return reinterpret_cast<const uint8_t*>(entry->name_); |
| 209 } | 208 } |
| 210 } | 209 } |
| 211 return NULL; | 210 return NULL; |
| 212 } | 211 } |
| 213 | 212 |
| 214 } // namespace bin | 213 } // namespace bin |
| 215 } // namespace dart | 214 } // namespace dart |
| OLD | NEW |