summaryrefslogtreecommitdiff
path: root/Kernel/API/InodeWatcherEvent.h
blob: db2658870064760fa60b7c2ce747a9db7d5e208f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (c) 2020, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Types.h>

struct [[gnu::packed]] InodeWatcherEvent {
    enum class Type {
        Invalid = 0,
        Modified,
        ChildAdded,
        ChildRemoved,
    };

    Type type { Type::Invalid };
    unsigned inode_index { 0 };
};