Change the interface a bit.
add a data() method, to avoid reaching into any xfer fields.
newUSBTransfer.
descriptor in the transfer struct.
complain about the incompatible pointer types.
Use pkg-config to add correct include paths for libusb regardless of the platform.
Initialize all static params at new.
transferring data is the same as the one that was created in newUSBTransfer.
in t.buf.
transfer.c
move transfer callback to transfer.go.
types.
that uses libusb's asynchronous interface.
routine iso transfers use.
other transfer types.
Move usbTransfer and it's methods to transfer.go, it's not only used by iso transfers.