diff options
Diffstat (limited to 'kapi/kapi/devices/bus.hpp')
| -rw-r--r-- | kapi/kapi/devices/bus.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kapi/kapi/devices/bus.hpp b/kapi/kapi/devices/bus.hpp index 2a306031..6c42d1de 100644 --- a/kapi/kapi/devices/bus.hpp +++ b/kapi/kapi/devices/bus.hpp @@ -3,8 +3,8 @@ // IWYU pragma: private, include <kapi/devices.hpp> +#include <kapi/capabilities/facet_id.hpp> #include <kapi/devices/device.hpp> -#include <kapi/devices/interface_id.hpp> #include <kstd/memory.hpp> #include <kstd/print.hpp> @@ -23,7 +23,7 @@ namespace kapi::devices struct bus : device { //! The id of the bus facet. - constexpr auto static id = interface_id{"bus"}; + constexpr auto static id = kapi::capabilities::facet_id{"bus"}; //! Construct a bus with the given name. //! @@ -42,14 +42,14 @@ namespace kapi::devices //! @return A vector of all children attached to this bus. [[nodiscard]] auto children() const -> std::span<kstd::shared_ptr<device> const>; - //! Get this bus's protocol facet, if present. - //! - //! @return this bus's protocol facet if it has one, nullptr otherwise. - [[nodiscard]] virtual auto protocol() -> struct bus_protocol *; + // //! Get this bus's protocol facet, if present. + // //! + // //! @return this bus's protocol facet if it has one, nullptr otherwise. + // [[nodiscard]] virtual auto protocol() -> struct bus_protocol *; protected: //! All busses have the "bus" facet. - auto query_interface(interface_id interface) -> void * override; + auto query_facet(kapi::capabilities::facet_id facet) -> void * override; private: kstd::vector<kstd::shared_ptr<device>> m_devices; |
