summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Buhagiar <jooster669@gmail.com>2022-05-24 23:44:24 +1000
committerAndreas Kling <kling@serenityos.org>2022-06-02 13:14:29 +0200
commitcd8939f4a0c1cb0696d0dd6e9aa002a13bfd8890 (patch)
treef649382130fddcc85caf2ae868de51a2283530b9
parent361737650fcd23b20141d289b51aac8a4bd4848c (diff)
downloadserenity-cd8939f4a0c1cb0696d0dd6e9aa002a13bfd8890.zip
Kernel/USB: Make USBInterface endpoints accessible
These weren't accessible by an accessor, so let's fix that :^)
-rw-r--r--Kernel/Bus/USB/USBInterface.h2
1 files changed, 2 insertions, 0 deletions
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<USBEndpointDescriptor> 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