aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/devices/device.cpp
blob: 0d00d8fddac088779fcd4adad03e184a1e602f04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <kapi/devices/device.hpp>

#include <kapi/devices.hpp>
#include <kapi/devices/bus.hpp>

#include <kstd/memory.hpp>
#include <kstd/string.hpp>

namespace kapi::devices
{
  device::device(kstd::string const & name)
      : m_name(name)
  {}

  [[nodiscard]] auto device::name() const -> kstd::string const &
  {
    return m_name;
  }

  auto device::set_parent(kstd::observer_ptr<bus> parent) -> void
  {
    m_parent = parent;
  }

  auto device::query_interface(interface) -> void *
  {
    return nullptr;
  }

}  // namespace kapi::devices