diff --git a/usb/iso.c b/usb/iso.c index 05c1106..6aac81b 100644 --- a/usb/iso.c +++ b/usb/iso.c @@ -18,12 +18,12 @@ #include void print_xfer(struct libusb_transfer *xfer); -void iso_callback(void *); +void transfer_callback(void *); void callback(struct libusb_transfer *xfer) { //printf("Callback!\n"); //print_xfer(xfer); - iso_callback(xfer->user_data); + transfer_callback(xfer->user_data); } int submit(struct libusb_transfer *xfer) { diff --git a/usb/iso.go b/usb/iso.go index ef410e9..e29d4a6 100644 --- a/usb/iso.go +++ b/usb/iso.go @@ -26,8 +26,8 @@ import ( "unsafe" ) -//export iso_callback -func iso_callback(cptr unsafe.Pointer) { +//export transfer_callback +func transfer_callback(cptr unsafe.Pointer) { ch := *(*chan struct{})(cptr) close(ch) }