Serenity Operating System
at master 37 lines 791 B view raw
1/* 2 * Copyright (c) 2020, Itamar S. <itamar8910@gmail.com> 3 * Copyright (c) 2021, the SerenityOS developers. 4 * 5 * SPDX-License-Identifier: BSD-2-Clause 6 */ 7 8#include "FileWatcher.h" 9#include <LibCore/Notifier.h> 10#include <errno.h> 11 12namespace Core { 13 14ErrorOr<NonnullRefPtr<FileWatcher>> FileWatcher::create(FileWatcherFlags) 15{ 16 return Error::from_errno(ENOTSUP); 17} 18 19FileWatcher::FileWatcher(int watcher_fd, NonnullRefPtr<Notifier> notifier) 20 : FileWatcherBase(watcher_fd) 21 , m_notifier(move(notifier)) 22{ 23} 24 25FileWatcher::~FileWatcher() = default; 26 27ErrorOr<bool> FileWatcherBase::add_watch(DeprecatedString, FileWatcherEvent::Type) 28{ 29 return Error::from_errno(ENOTSUP); 30} 31 32ErrorOr<bool> FileWatcherBase::remove_watch(DeprecatedString) 33{ 34 return Error::from_errno(ENOTSUP); 35} 36 37}