move iso.c to transfer.c, as it's used for all transfers.
move transfer callback to transfer.go.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user