mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17:45 +00:00
LibCore: Added FileWatcher, a binding for the watch_file syscall
This wrapper abstracts the watch_file setup and file handling, and allows using the watch_file events as part of the event loop via the Core::Notifier class. Also renames the existing DirectoryWatcher class to BlockingFileWatcher, and adds support for the Modified mode in this class.
This commit is contained in:
parent
0304ab3e67
commit
2acbb811b1
7 changed files with 216 additions and 119 deletions
|
@ -5,11 +5,11 @@ set(SOURCES
|
|||
ConfigFile.cpp
|
||||
Command.cpp
|
||||
DateTime.cpp
|
||||
DirectoryWatcher.cpp
|
||||
DirIterator.cpp
|
||||
ElapsedTimer.cpp
|
||||
Event.cpp
|
||||
EventLoop.cpp
|
||||
FileWatcher.cpp
|
||||
File.cpp
|
||||
GetPassword.cpp
|
||||
Gzip.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue