aboutsummaryrefslogtreecommitdiff
path: root/kapi
diff options
context:
space:
mode:
Diffstat (limited to 'kapi')
-rw-r--r--kapi/kapi/devices/interface_registry.hpp7
1 files changed, 7 insertions, 0 deletions
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<entry>;
+ //! 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<entry>;
+
//! Find an entry for a given interface on a device with the given name.
//!
//! @tparam Interface The interface type to look for.