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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 V(Process_Sleep, 1) \ | 44 V(Process_Sleep, 1) \ |
45 V(Process_Pid, 1) \ | 45 V(Process_Pid, 1) \ |
46 V(SecureSocket_Connect, 9) \ | 46 V(SecureSocket_Connect, 9) \ |
47 V(SecureSocket_Destroy, 1) \ | 47 V(SecureSocket_Destroy, 1) \ |
48 V(SecureSocket_Handshake, 1) \ | 48 V(SecureSocket_Handshake, 1) \ |
49 V(SecureSocket_Init, 1) \ | 49 V(SecureSocket_Init, 1) \ |
50 V(SecureSocket_PeerCertificate, 1) \ | 50 V(SecureSocket_PeerCertificate, 1) \ |
51 V(SecureSocket_RegisterBadCertificateCallback, 2) \ | 51 V(SecureSocket_RegisterBadCertificateCallback, 2) \ |
52 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ | 52 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ |
53 V(SecureSocket_Renegotiate, 4) \ | 53 V(SecureSocket_Renegotiate, 4) \ |
54 V(SecureSocket_InitializeLibrary, 4) \ | 54 V(SecureSocket_InitializeLibrary, 3) \ |
55 V(SecureSocket_AddCertificate, 2) \ | |
56 V(SecureSocket_ChangeTrust, 2) \ | |
57 V(SecureSocket_ImportCertificatesWithPrivateKeys, 2) \ | |
58 V(SecureSocket_GetCertificate, 1) \ | |
59 V(SecureSocket_RemoveCertificate, 1) \ | |
60 V(SecureSocket_NewServicePort, 0) \ | 55 V(SecureSocket_NewServicePort, 0) \ |
61 V(SecureSocket_FilterPointer, 1) \ | 56 V(SecureSocket_FilterPointer, 1) \ |
62 V(ServerSocket_CreateBindListen, 5) \ | 57 V(ServerSocket_CreateBindListen, 5) \ |
63 V(ServerSocket_Accept, 2) \ | 58 V(ServerSocket_Accept, 2) \ |
64 V(Socket_CreateConnect, 3) \ | 59 V(Socket_CreateConnect, 3) \ |
65 V(Socket_Available, 1) \ | 60 V(Socket_Available, 1) \ |
66 V(Socket_Read, 2) \ | 61 V(Socket_Read, 2) \ |
67 V(Socket_WriteList, 4) \ | 62 V(Socket_WriteList, 4) \ |
68 V(Socket_GetPort, 1) \ | 63 V(Socket_GetPort, 1) \ |
69 V(Socket_GetRemotePeer, 1) \ | 64 V(Socket_GetRemotePeer, 1) \ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 if (!strcmp(function_name, entry->name_) && | 97 if (!strcmp(function_name, entry->name_) && |
103 (entry->argument_count_ == argument_count)) { | 98 (entry->argument_count_ == argument_count)) { |
104 return reinterpret_cast<Dart_NativeFunction>(entry->function_); | 99 return reinterpret_cast<Dart_NativeFunction>(entry->function_); |
105 } | 100 } |
106 } | 101 } |
107 return NULL; | 102 return NULL; |
108 } | 103 } |
109 | 104 |
110 } // namespace bin | 105 } // namespace bin |
111 } // namespace dart | 106 } // namespace dart |
OLD | NEW |