From cd8939f4a0c1cb0696d0dd6e9aa002a13bfd8890 Mon Sep 17 00:00:00 2001 From: Jesse Buhagiar Date: Tue, 24 May 2022 23:44:24 +1000 Subject: Kernel/USB: Make USBInterface endpoints accessible These weren't accessible by an accessor, so let's fix that :^) --- Kernel/Bus/USB/USBInterface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Kernel') diff --git a/Kernel/Bus/USB/USBInterface.h b/Kernel/Bus/USB/USBInterface.h index d0131464cd..6aa5806030 100644 --- a/Kernel/Bus/USB/USBInterface.h +++ b/Kernel/Bus/USB/USBInterface.h @@ -23,6 +23,8 @@ public: m_endpoint_descriptors.ensure_capacity(descriptor.number_of_endpoints); } + Vector const& endpoints() const { return m_endpoint_descriptors; } + private: USBConfiguration const& m_configuration; // Configuration that this interface belongs to USBInterfaceDescriptor const m_descriptor; // Descriptor backing this interface -- cgit v1.2.3