aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/inode.cpp
blob: de3282f4e6eb3b2632f75746884d95892ea9d2b3 (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 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 filesystem