| 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 "platform/globals.h" | 7 #include "platform/globals.h" |
| 8 #if defined(HOST_OS_FUCHSIA) | 8 #if defined(HOST_OS_FUCHSIA) |
| 9 | 9 |
| 10 #include "bin/file_system_watcher.h" | 10 #include "bin/file_system_watcher.h" |
| 11 | 11 |
| 12 namespace dart { | 12 namespace dart { |
| 13 namespace bin { | 13 namespace bin { |
| 14 | 14 |
| 15 Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) { | 15 Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) { |
| 16 UNIMPLEMENTED(); | 16 UNIMPLEMENTED(); |
| 17 return DartUtils::NewDartOSError(); | 17 return DartUtils::NewDartOSError(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 | |
| 21 intptr_t FileSystemWatcher::GetSocketId(intptr_t id, intptr_t path_id) { | 20 intptr_t FileSystemWatcher::GetSocketId(intptr_t id, intptr_t path_id) { |
| 22 UNIMPLEMENTED(); | 21 UNIMPLEMENTED(); |
| 23 return -1; | 22 return -1; |
| 24 } | 23 } |
| 25 | 24 |
| 26 | |
| 27 bool FileSystemWatcher::IsSupported() { | 25 bool FileSystemWatcher::IsSupported() { |
| 28 return false; | 26 return false; |
| 29 } | 27 } |
| 30 | 28 |
| 31 | |
| 32 void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) { | 29 void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) { |
| 33 UNIMPLEMENTED(); | 30 UNIMPLEMENTED(); |
| 34 } | 31 } |
| 35 | 32 |
| 36 | |
| 37 intptr_t FileSystemWatcher::Init() { | 33 intptr_t FileSystemWatcher::Init() { |
| 38 return 0; | 34 return 0; |
| 39 } | 35 } |
| 40 | 36 |
| 41 | |
| 42 void FileSystemWatcher::Close(intptr_t id) { | 37 void FileSystemWatcher::Close(intptr_t id) { |
| 43 UNIMPLEMENTED(); | 38 UNIMPLEMENTED(); |
| 44 } | 39 } |
| 45 | 40 |
| 46 | |
| 47 intptr_t FileSystemWatcher::WatchPath(intptr_t id, | 41 intptr_t FileSystemWatcher::WatchPath(intptr_t id, |
| 48 const char* path, | 42 const char* path, |
| 49 int events, | 43 int events, |
| 50 bool recursive) { | 44 bool recursive) { |
| 51 UNIMPLEMENTED(); | 45 UNIMPLEMENTED(); |
| 52 return -1; | 46 return -1; |
| 53 } | 47 } |
| 54 | 48 |
| 55 } // namespace bin | 49 } // namespace bin |
| 56 } // namespace dart | 50 } // namespace dart |
| 57 | 51 |
| 58 #endif // defined(HOST_OS_FUCHSIA) | 52 #endif // defined(HOST_OS_FUCHSIA) |
| 59 | 53 |
| 60 #endif // !defined(DART_IO_DISABLED) | 54 #endif // !defined(DART_IO_DISABLED) |
| OLD | NEW |