Kernel/USB: Add interface descriptor accessor

This commit is contained in:
Jesse Buhagiar 2022-05-28 17:43:47 +10:00 committed by Andreas Kling
commit ed657e3d2b
Notes: sideshowbarker 2024-07-17 10:32:08 +09:00

View file

@ -25,6 +25,8 @@ public:
Vector<USBEndpointDescriptor> const& endpoints() const { return m_endpoint_descriptors; }
USBInterfaceDescriptor const& descriptor() const { return m_descriptor; }
private:
USBConfiguration const& m_configuration; // Configuration that this interface belongs to
USBInterfaceDescriptor const m_descriptor; // Descriptor backing this interface