fpi-usb-transfer: Use the same values of libusb for transfer types

This commit is contained in:
Marco Trevisan (Treviño) 2020-06-16 22:50:41 +02:00
parent e4d292b595
commit ed26976ac5
2 changed files with 5 additions and 4 deletions

View file

@ -105,6 +105,7 @@ fpi_usb_transfer_new (FpDevice * device)
self = g_slice_new0 (FpiUsbTransfer); self = g_slice_new0 (FpiUsbTransfer);
self->ref_count = 1; self->ref_count = 1;
self->type = FP_TRANSFER_NONE;
self->device = device; self->device = device;

View file

@ -47,10 +47,10 @@ typedef void (*FpiUsbTransferCallback)(FpiUsbTransfer *transfer,
* Type of the transfer. * Type of the transfer.
*/ */
typedef enum { typedef enum {
FP_TRANSFER_NONE = 0, FP_TRANSFER_NONE = -1,
FP_TRANSFER_BULK, FP_TRANSFER_CONTROL = 0,
FP_TRANSFER_CONTROL, FP_TRANSFER_BULK = 2,
FP_TRANSFER_INTERRUPT, FP_TRANSFER_INTERRUPT = 3,
} FpiTransferType; } FpiTransferType;
/** /**