| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 #if defined(DART_IO_DISABLED) | 5 #if defined(DART_IO_DISABLED) |
| 6 | 6 |
| 7 #include "bin/builtin.h" | 7 #include "bin/builtin.h" |
| 8 #include "bin/dartutils.h" | 8 #include "bin/dartutils.h" |
| 9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
| 10 | 10 |
| 11 namespace dart { | 11 namespace dart { |
| 12 namespace bin { | 12 namespace bin { |
| 13 | 13 |
| 14 | |
| 15 void FUNCTION_NAME(Socket_CreateConnect)(Dart_NativeArguments args) { | 14 void FUNCTION_NAME(Socket_CreateConnect)(Dart_NativeArguments args) { |
| 16 Dart_ThrowException( | 15 Dart_ThrowException( |
| 17 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 16 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 18 } | 17 } |
| 19 | 18 |
| 20 | |
| 21 void FUNCTION_NAME(Socket_CreateBindConnect)(Dart_NativeArguments args) { | 19 void FUNCTION_NAME(Socket_CreateBindConnect)(Dart_NativeArguments args) { |
| 22 Dart_ThrowException( | 20 Dart_ThrowException( |
| 23 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 21 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 24 } | 22 } |
| 25 | 23 |
| 26 | |
| 27 void FUNCTION_NAME(Socket_CreateBindDatagram)(Dart_NativeArguments args) { | 24 void FUNCTION_NAME(Socket_CreateBindDatagram)(Dart_NativeArguments args) { |
| 28 Dart_ThrowException( | 25 Dart_ThrowException( |
| 29 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 26 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 30 } | 27 } |
| 31 | 28 |
| 32 | |
| 33 void FUNCTION_NAME(Socket_Available)(Dart_NativeArguments args) { | 29 void FUNCTION_NAME(Socket_Available)(Dart_NativeArguments args) { |
| 34 Dart_ThrowException( | 30 Dart_ThrowException( |
| 35 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 31 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 36 } | 32 } |
| 37 | 33 |
| 38 | |
| 39 void FUNCTION_NAME(Socket_Read)(Dart_NativeArguments args) { | 34 void FUNCTION_NAME(Socket_Read)(Dart_NativeArguments args) { |
| 40 Dart_ThrowException( | 35 Dart_ThrowException( |
| 41 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 36 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 42 } | 37 } |
| 43 | 38 |
| 44 | |
| 45 void FUNCTION_NAME(Socket_RecvFrom)(Dart_NativeArguments args) { | 39 void FUNCTION_NAME(Socket_RecvFrom)(Dart_NativeArguments args) { |
| 46 Dart_ThrowException( | 40 Dart_ThrowException( |
| 47 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 41 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 48 } | 42 } |
| 49 | 43 |
| 50 | |
| 51 void FUNCTION_NAME(Socket_WriteList)(Dart_NativeArguments args) { | 44 void FUNCTION_NAME(Socket_WriteList)(Dart_NativeArguments args) { |
| 52 Dart_ThrowException( | 45 Dart_ThrowException( |
| 53 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 46 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 54 } | 47 } |
| 55 | 48 |
| 56 | |
| 57 void FUNCTION_NAME(Socket_SendTo)(Dart_NativeArguments args) { | 49 void FUNCTION_NAME(Socket_SendTo)(Dart_NativeArguments args) { |
| 58 Dart_ThrowException( | 50 Dart_ThrowException( |
| 59 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 51 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 60 } | 52 } |
| 61 | 53 |
| 62 | |
| 63 void FUNCTION_NAME(Socket_GetPort)(Dart_NativeArguments args) { | 54 void FUNCTION_NAME(Socket_GetPort)(Dart_NativeArguments args) { |
| 64 Dart_ThrowException( | 55 Dart_ThrowException( |
| 65 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 56 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 66 } | 57 } |
| 67 | 58 |
| 68 | |
| 69 void FUNCTION_NAME(Socket_GetRemotePeer)(Dart_NativeArguments args) { | 59 void FUNCTION_NAME(Socket_GetRemotePeer)(Dart_NativeArguments args) { |
| 70 Dart_ThrowException( | 60 Dart_ThrowException( |
| 71 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 61 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 72 } | 62 } |
| 73 | 63 |
| 74 | |
| 75 void FUNCTION_NAME(Socket_GetError)(Dart_NativeArguments args) { | 64 void FUNCTION_NAME(Socket_GetError)(Dart_NativeArguments args) { |
| 76 Dart_ThrowException( | 65 Dart_ThrowException( |
| 77 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 66 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 78 } | 67 } |
| 79 | 68 |
| 80 | |
| 81 void FUNCTION_NAME(Socket_GetType)(Dart_NativeArguments args) { | 69 void FUNCTION_NAME(Socket_GetType)(Dart_NativeArguments args) { |
| 82 Dart_ThrowException( | 70 Dart_ThrowException( |
| 83 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 71 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 84 } | 72 } |
| 85 | 73 |
| 86 | |
| 87 void FUNCTION_NAME(Socket_GetStdioHandle)(Dart_NativeArguments args) { | 74 void FUNCTION_NAME(Socket_GetStdioHandle)(Dart_NativeArguments args) { |
| 88 Dart_ThrowException( | 75 Dart_ThrowException( |
| 89 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 76 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 90 } | 77 } |
| 91 | 78 |
| 92 | |
| 93 void FUNCTION_NAME(Socket_GetSocketId)(Dart_NativeArguments args) { | 79 void FUNCTION_NAME(Socket_GetSocketId)(Dart_NativeArguments args) { |
| 94 Dart_ThrowException( | 80 Dart_ThrowException( |
| 95 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 81 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 96 } | 82 } |
| 97 | 83 |
| 98 | |
| 99 void FUNCTION_NAME(Socket_SetSocketId)(Dart_NativeArguments args) { | 84 void FUNCTION_NAME(Socket_SetSocketId)(Dart_NativeArguments args) { |
| 100 Dart_ThrowException( | 85 Dart_ThrowException( |
| 101 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 86 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 102 } | 87 } |
| 103 | 88 |
| 104 | |
| 105 void FUNCTION_NAME(ServerSocket_CreateBindListen)(Dart_NativeArguments args) { | 89 void FUNCTION_NAME(ServerSocket_CreateBindListen)(Dart_NativeArguments args) { |
| 106 Dart_ThrowException( | 90 Dart_ThrowException( |
| 107 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 91 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 108 } | 92 } |
| 109 | 93 |
| 110 | |
| 111 void FUNCTION_NAME(ServerSocket_Accept)(Dart_NativeArguments args) { | 94 void FUNCTION_NAME(ServerSocket_Accept)(Dart_NativeArguments args) { |
| 112 Dart_ThrowException( | 95 Dart_ThrowException( |
| 113 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 96 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 114 } | 97 } |
| 115 | 98 |
| 116 | |
| 117 void FUNCTION_NAME(Socket_GetOption)(Dart_NativeArguments args) { | 99 void FUNCTION_NAME(Socket_GetOption)(Dart_NativeArguments args) { |
| 118 Dart_ThrowException( | 100 Dart_ThrowException( |
| 119 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 101 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 120 } | 102 } |
| 121 | 103 |
| 122 | |
| 123 void FUNCTION_NAME(Socket_SetOption)(Dart_NativeArguments args) { | 104 void FUNCTION_NAME(Socket_SetOption)(Dart_NativeArguments args) { |
| 124 Dart_ThrowException( | 105 Dart_ThrowException( |
| 125 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 106 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 126 } | 107 } |
| 127 | 108 |
| 128 | |
| 129 void FUNCTION_NAME(Socket_JoinMulticast)(Dart_NativeArguments args) { | 109 void FUNCTION_NAME(Socket_JoinMulticast)(Dart_NativeArguments args) { |
| 130 Dart_ThrowException( | 110 Dart_ThrowException( |
| 131 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 111 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 132 } | 112 } |
| 133 | 113 |
| 134 | |
| 135 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { | 114 void FUNCTION_NAME(Socket_LeaveMulticast)(Dart_NativeArguments args) { |
| 136 Dart_ThrowException( | 115 Dart_ThrowException( |
| 137 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); | 116 DartUtils::NewDartArgumentError("Sockets unsupported on this platform")); |
| 138 } | 117 } |
| 139 | 118 |
| 140 } // namespace bin | 119 } // namespace bin |
| 141 } // namespace dart | 120 } // namespace dart |
| 142 | 121 |
| 143 #endif // defined(DART_IO_DISABLED) | 122 #endif // defined(DART_IO_DISABLED) |
| OLD | NEW |