Exemple #1
0
func (d *Device) Ref() *Device {
	return (*Device)(C.libusb_ref_device((*C.libusb_device)(d.me())))
}
Exemple #2
0
func (ctx *Context) wrapDevice(dev *C.struct_libusb_device) *Device {
	C.libusb_ref_device(dev)
	return &Device{ctx, dev}
}