/* * Copyright (c) 2020, Itamar S. * Copyright (c) 2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include "FileWatcher.h" #include #include namespace Core { ErrorOr> FileWatcher::create(FileWatcherFlags) { return Error::from_errno(ENOTSUP); } FileWatcher::FileWatcher(int watcher_fd, NonnullRefPtr notifier) : FileWatcherBase(watcher_fd) , m_notifier(move(notifier)) { } FileWatcher::~FileWatcher() = default; ErrorOr FileWatcherBase::add_watch(DeprecatedString, FileWatcherEvent::Type) { return Error::from_errno(ENOTSUP); } ErrorOr FileWatcherBase::remove_watch(DeprecatedString) { return Error::from_errno(ENOTSUP); } }