| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #ifndef BIN_FILE_H_ | 5 #ifndef BIN_FILE_H_ |
| 6 #define BIN_FILE_H_ | 6 #define BIN_FILE_H_ |
| 7 | 7 |
| 8 #if defined(_WIN32) | 8 #if defined(_WIN32) |
| 9 typedef signed __int64 int64_t; | 9 typedef signed __int64 int64_t; |
| 10 typedef unsigned __int8 uint8_t; | 10 typedef unsigned __int8 uint8_t; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 enum DartFileOpenMode { | 39 enum DartFileOpenMode { |
| 40 kDartRead = 0, | 40 kDartRead = 0, |
| 41 kDartWrite = 1, | 41 kDartWrite = 1, |
| 42 kDartAppend = 2 | 42 kDartAppend = 2 |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 enum StdioHandleType { | 45 enum StdioHandleType { |
| 46 kTerminal = 0, | 46 kTerminal = 0, |
| 47 kPipe = 1, | 47 kPipe = 1, |
| 48 kFile = 2, | 48 kFile = 2, |
| 49 kOther = 3 | 49 kSocket = 3, |
| 50 kOther = -1 |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 enum FileRequest { | 53 enum FileRequest { |
| 53 kExistsRequest = 0, | 54 kExistsRequest = 0, |
| 54 kCreateRequest = 1, | 55 kCreateRequest = 1, |
| 55 kDeleteRequest = 2, | 56 kDeleteRequest = 2, |
| 56 kOpenRequest = 3, | 57 kOpenRequest = 3, |
| 57 kFullPathRequest = 4, | 58 kFullPathRequest = 4, |
| 58 kDirectoryRequest = 5, | 59 kDirectoryRequest = 5, |
| 59 kCloseRequest = 6, | 60 kCloseRequest = 6, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 File(const File&); | 146 File(const File&); |
| 146 void operator=(const File&); | 147 void operator=(const File&); |
| 147 | 148 |
| 148 static dart::Mutex mutex_; | 149 static dart::Mutex mutex_; |
| 149 static int service_ports_size_; | 150 static int service_ports_size_; |
| 150 static Dart_Port* service_ports_; | 151 static Dart_Port* service_ports_; |
| 151 static int service_ports_index_; | 152 static int service_ports_index_; |
| 152 }; | 153 }; |
| 153 | 154 |
| 154 #endif // BIN_FILE_H_ | 155 #endif // BIN_FILE_H_ |
| OLD | NEW |