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