From ef124ea26ebe98f16e0e8fb204ec1f419bf656ee Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 24 Jul 2026 09:11:12 +0200 Subject: kapi: add find overload to find composed interfaces --- kapi/kapi/devices/interface_registry.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'kapi') diff --git a/kapi/kapi/devices/interface_registry.hpp b/kapi/kapi/devices/interface_registry.hpp index ae8b5c1a..b1dfa08e 100644 --- a/kapi/kapi/devices/interface_registry.hpp +++ b/kapi/kapi/devices/interface_registry.hpp @@ -121,6 +121,13 @@ namespace kapi::devices //! @return An entry representing the published interface if it exists, an error otherwise. [[nodiscard]] auto find(interface interface, std::string_view name) const -> kstd::result; + //! Find an entry for a given interface on a specific device. + //! + //! @param interface The interface to look for. + //! @param device The device to look for. + //! @return An entry representing the published interface if it exists, an error otherwise. + [[nodiscard]] auto find(interface interface, device const & device) const -> kstd::result; + //! Find an entry for a given interface on a device with the given name. //! //! @tparam Interface The interface type to look for. -- cgit v1.2.3