Document Interface parameters.

This commit is contained in:
Sebastian Zagrodzki
2017-05-06 02:19:57 +02:00
parent 89dc91ef06
commit c6b9a04e9f

View File

@@ -80,6 +80,8 @@ func (c *Config) String() string {
} }
// Interface claims and returns an interface on a USB device. // Interface claims and returns an interface on a USB device.
// inft specifies the number of an interface to claim, and alt specifies the
// alternate setting number for that interface.
func (c *Config) Interface(intf, alt int) (*Interface, error) { func (c *Config) Interface(intf, alt int) (*Interface, error) {
if c.dev == nil { if c.dev == nil {
return nil, fmt.Errorf("Interface(%d, %d) called on %s after Close", intf, alt, c) return nil, fmt.Errorf("Interface(%d, %d) called on %s after Close", intf, alt, c)