| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_DIRECTORY_H_ | 5 #ifndef BIN_DIRECTORY_H_ |
| 6 #define BIN_DIRECTORY_H_ | 6 #define BIN_DIRECTORY_H_ |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/globals.h" | 9 #include "bin/globals.h" |
| 10 | 10 |
| 11 class Directory { | 11 class Directory { |
| 12 public: | 12 public: |
| 13 static bool Open(const char* path, intptr_t* dir); | |
| 14 static bool Close(intptr_t dir); | |
| 15 static void List(const char* path, | 13 static void List(const char* path, |
| 16 intptr_t dir, | |
| 17 bool recursive, | 14 bool recursive, |
| 18 Dart_Port dir_handler, | 15 Dart_Port dir_port, |
| 19 Dart_Port file_handler, | 16 Dart_Port file_port, |
| 20 Dart_Port done_handler, | 17 Dart_Port done_port, |
| 21 Dart_Port dir_error_handler); | 18 Dart_Port error_port); |
| 22 | 19 |
| 23 DISALLOW_ALLOCATION(); | 20 DISALLOW_ALLOCATION(); |
| 24 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); | 21 DISALLOW_IMPLICIT_CONSTRUCTORS(Directory); |
| 25 }; | 22 }; |
| 26 | 23 |
| 27 #endif // BIN_DIRECTORY_H_ | 24 #endif // BIN_DIRECTORY_H_ |
| OLD | NEW |