libusb icon indicating copy to clipboard operation
libusb copied to clipboard

Go bindings for the C libusb library.

Results 5 libusb issues
Sort by recently updated
recently updated
newest added

Hello, Im trying to work with libusb and go. I have msys mingw64 and I've installed mingw-w64-x86_64-libusb-1.0.26-1 there. Pkg-Config finds it but when I compile the example: ```go // Copyright...

Hi guys! I want to get a list of usb devices, Then catch my *usb printer* by it *class* So i did this ```go package main import ( "fmt" "github.com/gotmc/libusb/v2"...

The `libusb.DeviceHandle::ControlTransfer` methods arg[0] has a non-exported type `bmRequestType`. As a result it seems like this method can only be called with hard-coded values and not passed in with a...

access to `hotplugCallbackStorage ` is not protected by mutex. ``` ================== WARNING: DATA RACE Read at 0x00c00009a330 by goroutine 7: runtime.mapaccess2_fast32() runtime/map_fast32.go:53 +0x0 github.com/gotmc/libusb/v2.libusbHotplugCallback() github.com/gotmc/libusb/[email protected]/hotplug.go:203 +0xf0 _cgoexp_0b0a3dd1d46c_libusbHotplugCallback() _cgo_gotypes.go:998 +0x99 runtime.cgocallbackg1()...

my os: uname -a: Linux y1cloud-Z790-UD 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux dpkg -l | grep libusb: ii libgusb2:amd64 0.3.10-1 amd64 GLib...