mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:57:47 +00:00
LibCore: Implement FileWatcher for Linux
This implements FileWatcher using inotify filesystem events. Serenity's InodeWatcher is remarkably similar to inotify, so this is almost an identical implementation. The existing TestLibCoreFileWatcher test is added to Lagom (currently just for Linux). This does not implement BlockingFileWatcher as that is currently not used anywhere but on Serenity.
This commit is contained in:
parent
91cbdc67de
commit
8ca528217c
4 changed files with 184 additions and 3 deletions
|
@ -44,9 +44,11 @@ if (NOT ANDROID AND NOT WIN32 AND NOT EMSCRIPTEN)
|
|||
)
|
||||
endif()
|
||||
|
||||
# FIXME: Implement Core::FileWatcher for Linux, macOS, *BSD, and Windows.
|
||||
# FIXME: Implement Core::FileWatcher for macOS, *BSD, and Windows.
|
||||
if (SERENITYOS)
|
||||
list(APPEND SOURCES FileWatcherSerenity.cpp)
|
||||
elseif (LINUX AND NOT EMSCRIPTEN)
|
||||
list(APPEND SOURCES FileWatcherLinux.cpp)
|
||||
else()
|
||||
list(APPEND SOURCES FileWatcherUnimplemented.cpp)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue