MCPcopy Create free account
hub / github.com/cathery/sys-con / SetInterfaces

Method SetInterfaces

source/ControllerSwitch/SwitchUSBDevice.cpp:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void SwitchUSBDevice::SetInterfaces(UsbHsInterface *interfaces, int length)
45{
46 if (length > 0)
47 {
48 m_vendorID = interfaces->device_desc.idVendor;
49 m_productID = interfaces->device_desc.idProduct;
50 m_interfaces.clear();
51 m_interfaces.reserve(length);
52 for (int i = 0; i != length; ++i)
53 {
54 m_interfaces.push_back(std::make_unique<SwitchUSBInterface>(interfaces[i]));
55 }
56 }
57}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected