1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:07:34 +00:00

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
parent 361737650f
commit cd8939f4a0

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