aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/inode.cpp
blob: 1cbead845316e21c2e0258a59be84db06c3f79b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "kernel/filesystem/inode.hpp"

namespace kernel::filesystem
{
  inode::inode(inode_kind kind)
      : m_kind(kind)
  {}

  auto inode::is_directory() const -> bool
  {
    return m_kind == inode_kind::directory;
  }

  auto inode::is_regular() const -> bool
  {
    return m_kind == inode_kind::regular;
  }

  auto inode::is_device() const -> bool
  {
    return m_kind == inode_kind::device;
  }
}  // namespace kernel::filesystem