libusb
libusb copied to clipboard
golang wrapper for libusb-1.0
# github.com/deadsy/libusb cgo-gcc-prolog: In function '_cgo_b02b680d4895_Cfunc_libusb_set_debug': cgo-gcc-prolog:1212:2: warning: 'libusb_set_debug' is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations] In file included from ..\..\..\pkg\mod\github.com\deadsy\[email protected]\libusb.go:14: C:/TDM-GCC-64/include/libusb-1.0/libusb.h:1352:18: note: declared here 1352 | void LIBUSB_CALL libusb_set_debug(libusb_context *ctx,...
The current implementation of Interrupt_Transfer returns: ``` if rc != 0 { return nil, &libusb_error{rc} } return data[:int(transferred)], nil ``` If libusb can only perform a partial transfer then rc...