2020-11-07 04:38:48 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, the SerenityOS developers.
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-11-07 04:38:48 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Types.h>
|
|
|
|
|
|
2020-12-30 18:44:54 -03:00
|
|
|
struct [[gnu::packed]] InodeWatcherEvent {
|
2020-11-07 04:38:48 -03:00
|
|
|
enum class Type {
|
|
|
|
|
Invalid = 0,
|
|
|
|
|
Modified,
|
|
|
|
|
ChildAdded,
|
|
|
|
|
ChildRemoved,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Type type { Type::Invalid };
|
|
|
|
|
unsigned inode_index { 0 };
|
|
|
|
|
};
|