| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #ifndef BIN_IO_SERVICE_H_ |
| 6 #define BIN_IO_SERVICE_H_ |
| 7 |
| 8 #include "bin/builtin.h" |
| 9 #include "bin/utils.h" |
| 10 |
| 11 |
| 12 namespace dart { |
| 13 namespace bin { |
| 14 |
| 15 #define IO_SERVICE_REQUEST_LIST(V) \ |
| 16 V(File, Exists, 0) \ |
| 17 V(File, Create, 1) \ |
| 18 V(File, Delete, 2) \ |
| 19 V(File, Rename, 3) \ |
| 20 V(File, Open, 4) \ |
| 21 V(File, ResolveSymbolicLinks, 5) \ |
| 22 V(File, Close, 6) \ |
| 23 V(File, Position, 7) \ |
| 24 V(File, SetPosition, 8) \ |
| 25 V(File, Truncate, 9) \ |
| 26 V(File, Length, 10) \ |
| 27 V(File, LengthFromPath, 11) \ |
| 28 V(File, LastModified, 12) \ |
| 29 V(File, Flush, 13) \ |
| 30 V(File, ReadByte, 14) \ |
| 31 V(File, WriteByte, 15) \ |
| 32 V(File, Read, 16) \ |
| 33 V(File, ReadInto, 17) \ |
| 34 V(File, WriteFrom, 18) \ |
| 35 V(File, CreateLink, 19) \ |
| 36 V(File, DeleteLink, 20) \ |
| 37 V(File, RenameLink, 21) \ |
| 38 V(File, LinkTarget, 22) \ |
| 39 V(File, Type, 23) \ |
| 40 V(File, Identical, 24) \ |
| 41 V(File, Stat, 25) \ |
| 42 V(Socket, Lookup, 26) \ |
| 43 V(Socket, ListInterfaces, 27) \ |
| 44 V(Socket, ReverseLookup, 28) \ |
| 45 V(Directory, Create, 29) \ |
| 46 V(Directory, Delete, 30) \ |
| 47 V(Directory, Exists, 31) \ |
| 48 V(Directory, CreateTemp, 32) \ |
| 49 V(Directory, ListStart, 33) \ |
| 50 V(Directory, ListNext, 34) \ |
| 51 V(Directory, ListStop, 35) \ |
| 52 V(Directory, Rename, 36) \ |
| 53 V(SSLFilter, ProcessFilter, 37) |
| 54 |
| 55 #define DECLARE_REQUEST(type, method, id) \ |
| 56 k##type##method##Request = id, |
| 57 |
| 58 class IOService { |
| 59 public: |
| 60 enum { |
| 61 IO_SERVICE_REQUEST_LIST(DECLARE_REQUEST) |
| 62 }; |
| 63 |
| 64 static Dart_Port GetServicePort(); |
| 65 }; |
| 66 |
| 67 } // namespace bin |
| 68 } // namespace dart |
| 69 |
| 70 #endif // BIN_IO_SERVICE_H_ |
| 71 |
| OLD | NEW |