move iso.c to transfer.c, as it's used for all transfers.

move transfer callback to transfer.go.
This commit is contained in:
Sebastian Zagrodzki
2017-02-10 22:11:54 +01:00
parent d7ed6d67e6
commit 31b3ac1c67
3 changed files with 8 additions and 19 deletions

View File

@@ -29,6 +29,12 @@ import (
"unsafe"
)
//export xfer_callback
func xfer_callback(cptr unsafe.Pointer) {
ch := *(*chan struct{})(cptr)
close(ch)
}
type usbTransfer struct {
xfer *C.struct_libusb_transfer
pkts []*C.struct_libusb_packet_descriptor