Kernel/USB: Make USBInterface endpoints accessible

These weren't accessible by an accessor, so let's fix that :^)
This commit is contained in:
Jesse Buhagiar 2022-05-24 23:44:24 +10:00 committed by Andreas Kling
commit cd8939f4a0
Notes: sideshowbarker 2024-07-17 10:32:16 +09:00

View file

@ -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