Add a method to return a fake allocated transfer.

This commit is contained in:
Sebastian Zagrodzki
2017-04-27 03:12:06 +02:00
parent 76df46148e
commit b9dabf4da9

View File

@@ -451,3 +451,7 @@ func libusbSetDebug(c *libusbContext, lvl int) {
func newDevicePointer() *libusbDevice {
return (*libusbDevice)(unsafe.Pointer(C.malloc(1)))
}
func newFakeTransferPointer() *libusbTransfer {
return (*libusbTransfer)(unsafe.Pointer(C.malloc(1)))
}