예제 #1
0
파일: usb.go 프로젝트: hanwen/usb
// Decrement the reference count of a device.
func (d *Device) Unref() {
	C.libusb_unref_device((*C.libusb_device)(d.me()))
}
예제 #2
0
파일: usb.go 프로젝트: thequux/gousb
func (dev *Device) destroy() {
	C.libusb_unref_device(dev.device)
	dev.device = nil
	dev.ctx = nil
}