FileWatcherUnimplemented.cpp 834 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #include "FileWatcher.h"
  8. #include <Kernel/API/InodeWatcherFlags.h>
  9. #include <LibCore/Notifier.h>
  10. #include <errno.h>
  11. namespace Core {
  12. ErrorOr<NonnullRefPtr<FileWatcher>> FileWatcher::create(InodeWatcherFlags)
  13. {
  14. return Error::from_errno(ENOTSUP);
  15. }
  16. FileWatcher::FileWatcher(int watcher_fd, NonnullRefPtr<Notifier> notifier)
  17. : FileWatcherBase(watcher_fd)
  18. , m_notifier(move(notifier))
  19. {
  20. }
  21. FileWatcher::~FileWatcher() = default;
  22. ErrorOr<bool> FileWatcherBase::add_watch(DeprecatedString, FileWatcherEvent::Type)
  23. {
  24. return Error::from_errno(ENOTSUP);
  25. }
  26. ErrorOr<bool> FileWatcherBase::remove_watch(DeprecatedString)
  27. {
  28. return Error::from_errno(ENOTSUP);
  29. }
  30. }