aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/devices/device.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-07-26 02:27:59 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-07-26 02:27:59 +0200
commit59f54d012c71e782966e9d083f1ee9459fd3fd70 (patch)
treefa1c34396c3b9e50c6128fa1b8e580abd4e44b3d /kernel/kapi/devices/device.cpp
parentb486b794abaf35b0b2376662173eb07549252cfc (diff)
downloadkernel-59f54d012c71e782966e9d083f1ee9459fd3fd70.tar.xz
kernel-59f54d012c71e782966e9d083f1ee9459fd3fd70.zip
chore: replace "interface" with "facet"
Diffstat (limited to 'kernel/kapi/devices/device.cpp')
-rw-r--r--kernel/kapi/devices/device.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/kapi/devices/device.cpp b/kernel/kapi/devices/device.cpp
index 01096165..2628e4f4 100644
--- a/kernel/kapi/devices/device.cpp
+++ b/kernel/kapi/devices/device.cpp
@@ -12,19 +12,19 @@ namespace kapi::devices
: m_name(name)
{}
- auto device::as(interface_id interface) noexcept -> void *
+ auto device::facet(kapi::capabilities::facet_id facet) noexcept -> void *
{
- return query_interface(interface);
+ return query_facet(facet);
}
- auto device::as(interface_id interface) const noexcept -> void const *
+ auto device::facet(kapi::capabilities::facet_id facet) const noexcept -> void const *
{
- return const_cast<device *>(this)->query_interface(interface);
+ return const_cast<device *>(this)->query_facet(facet);
}
- auto device::is_a(interface_id interface) const noexcept -> bool
+ auto device::has_facet(kapi::capabilities::facet_id facet) const noexcept -> bool
{
- return const_cast<device *>(this)->query_interface(interface) != nullptr;
+ return const_cast<device *>(this)->query_facet(facet) != nullptr;
}
auto device::name() const -> kstd::string const &
@@ -67,7 +67,7 @@ namespace kapi::devices
m_driver_data = data;
}
- auto device::query_interface(interface_id) -> void *
+ auto device::query_facet(kapi::capabilities::facet_id) -> void *
{
return nullptr;
}