Flutter Engine
The Flutter Engine
file_system_watcher_fuchsia.cc
Go to the documentation of this 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
3// BSD-style license that can be found in the LICENSE file.
4
5#include "platform/globals.h"
6#if defined(DART_HOST_OS_FUCHSIA)
7
9
10#include <errno.h>
11
12namespace dart {
13namespace bin {
14
15Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) {
16 errno = ENOSYS;
18}
19
20intptr_t FileSystemWatcher::GetSocketId(intptr_t id, intptr_t path_id) {
21 errno = ENOSYS;
22 return -1;
23}
24
26 return false;
27}
28
29void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) {}
30
31intptr_t FileSystemWatcher::Init() {
32 return 0;
33}
34
35void FileSystemWatcher::Close(intptr_t id) {}
36
37intptr_t FileSystemWatcher::WatchPath(intptr_t id,
38 Namespace* namespc,
39 const char* path,
40 int events,
41 bool recursive) {
42 errno = ENOSYS;
43 return -1;
44}
45
46} // namespace bin
47} // namespace dart
48
49#endif // defined(DART_HOST_OS_FUCHSIA)
static Dart_Handle NewDartOSError()
Definition: dartutils.cc:702
static intptr_t GetSocketId(intptr_t id, intptr_t path_id)
static void Close(intptr_t id)
static void UnwatchPath(intptr_t id, intptr_t path_id)
static Dart_Handle ReadEvents(intptr_t id, intptr_t path_id)
static intptr_t WatchPath(intptr_t id, Namespace *namespc, const char *path, int events, bool recursive)
struct _Dart_Handle * Dart_Handle
Definition: dart_api.h:258
Definition: dart_vm.cc:33
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57