mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
Kernel: Move InodeWatcher::Event into Kernel/API/InodeWatcherEvent
This allows userspace code to parse these events.
This commit is contained in:
parent
b4842d33bb
commit
345abc3132
Notes:
sideshowbarker
2024-07-19 00:51:12 +09:00
Author: https://github.com/itamar8910
Commit: 345abc3132
Pull-request: https://github.com/SerenityOS/serenity/pull/3738
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
4 changed files with 51 additions and 19 deletions
|
@ -28,6 +28,7 @@
|
|||
#include <AK/Singleton.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <Kernel/API/InodeWatcherEvent.h>
|
||||
#include <Kernel/FileSystem/Custody.h>
|
||||
#include <Kernel/FileSystem/Inode.h>
|
||||
#include <Kernel/FileSystem/InodeWatcher.h>
|
||||
|
@ -229,7 +230,7 @@ void Inode::set_metadata_dirty(bool metadata_dirty)
|
|||
// We don't always end up on this particular code path, for instance when writing to an ext2fs file.
|
||||
LOCKER(m_lock);
|
||||
for (auto& watcher : m_watchers) {
|
||||
watcher->notify_inode_event({}, InodeWatcher::Event::Type::Modified);
|
||||
watcher->notify_inode_event({}, InodeWatcherEvent::Type::Modified);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue