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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 V(SecureSocket_FilterPointer, 1) \ | 59 V(SecureSocket_FilterPointer, 1) \ |
60 V(SecureSocket_GetSelectedProtocol, 1) \ | 60 V(SecureSocket_GetSelectedProtocol, 1) \ |
61 V(SecureSocket_Handshake, 1) \ | 61 V(SecureSocket_Handshake, 1) \ |
62 V(SecureSocket_Init, 1) \ | 62 V(SecureSocket_Init, 1) \ |
63 V(SecureSocket_InitializeLibrary, 3) \ | 63 V(SecureSocket_InitializeLibrary, 3) \ |
64 V(SecureSocket_PeerCertificate, 1) \ | 64 V(SecureSocket_PeerCertificate, 1) \ |
65 V(SecureSocket_RegisterBadCertificateCallback, 2) \ | 65 V(SecureSocket_RegisterBadCertificateCallback, 2) \ |
66 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ | 66 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ |
67 V(SecureSocket_Renegotiate, 4) \ | 67 V(SecureSocket_Renegotiate, 4) \ |
68 V(ServerSocket_Accept, 2) \ | 68 V(ServerSocket_Accept, 2) \ |
69 V(ServerSocket_CreateBindListen, 6) \ | 69 V(ServerSocket_CreateBindListen, 5) \ |
70 V(Socket_CreateConnect, 3) \ | 70 V(Socket_CreateConnect, 3) \ |
71 V(Socket_CreateBindDatagram, 4) \ | 71 V(Socket_CreateBindDatagram, 4) \ |
72 V(Socket_Available, 1) \ | 72 V(Socket_Available, 1) \ |
73 V(Socket_Read, 2) \ | 73 V(Socket_Read, 2) \ |
74 V(Socket_RecvFrom, 1) \ | 74 V(Socket_RecvFrom, 1) \ |
75 V(Socket_WriteList, 4) \ | 75 V(Socket_WriteList, 4) \ |
76 V(Socket_SendTo, 6) \ | 76 V(Socket_SendTo, 6) \ |
77 V(Socket_GetPort, 1) \ | 77 V(Socket_GetPort, 1) \ |
78 V(Socket_GetRemotePeer, 1) \ | 78 V(Socket_GetRemotePeer, 1) \ |
79 V(Socket_GetError, 1) \ | 79 V(Socket_GetError, 1) \ |
80 V(Socket_GetStdioHandle, 2) \ | 80 V(Socket_GetStdioHandle, 2) \ |
81 V(Socket_GetType, 1) \ | 81 V(Socket_GetType, 1) \ |
82 V(Socket_GetOption, 3) \ | 82 V(Socket_GetOption, 3) \ |
83 V(Socket_SetOption, 4) \ | 83 V(Socket_SetOption, 4) \ |
84 V(Socket_JoinMulticast, 4) \ | 84 V(Socket_JoinMulticast, 4) \ |
85 V(Socket_LeaveMulticast, 4) \ | 85 V(Socket_LeaveMulticast, 4) \ |
86 V(Socket_MarkSocketAsSharedHack, 1) \ | |
87 V(Socket_GetSocketId, 1) \ | 86 V(Socket_GetSocketId, 1) \ |
88 V(Socket_SetSocketId, 2) \ | 87 V(Socket_SetSocketId, 2) \ |
89 V(Stdin_ReadByte, 1) \ | 88 V(Stdin_ReadByte, 1) \ |
90 V(Stdin_GetEchoMode, 0) \ | 89 V(Stdin_GetEchoMode, 0) \ |
91 V(Stdin_SetEchoMode, 1) \ | 90 V(Stdin_SetEchoMode, 1) \ |
92 V(Stdin_GetLineMode, 0) \ | 91 V(Stdin_GetLineMode, 0) \ |
93 V(Stdin_SetLineMode, 1) \ | 92 V(Stdin_SetLineMode, 1) \ |
94 V(Stdout_GetTerminalSize, 1) \ | 93 V(Stdout_GetTerminalSize, 1) \ |
95 V(StringToSystemEncoding, 1) \ | 94 V(StringToSystemEncoding, 1) \ |
96 V(SystemEncodingToString, 1) | 95 V(SystemEncodingToString, 1) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 struct NativeEntries* entry = &(IOEntries[i]); | 133 struct NativeEntries* entry = &(IOEntries[i]); |
135 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 134 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
136 return reinterpret_cast<const uint8_t*>(entry->name_); | 135 return reinterpret_cast<const uint8_t*>(entry->name_); |
137 } | 136 } |
138 } | 137 } |
139 return NULL; | 138 return NULL; |
140 } | 139 } |
141 | 140 |
142 } // namespace bin | 141 } // namespace bin |
143 } // namespace dart | 142 } // namespace dart |
OLD | NEW |