fpi-usb-transfer: Use the same values of libusb for transfer types
This commit is contained in:
parent
e4d292b595
commit
ed26976ac5
2 changed files with 5 additions and 4 deletions
|
@ -105,6 +105,7 @@ fpi_usb_transfer_new (FpDevice * device)
|
|||
|
||||
self = g_slice_new0 (FpiUsbTransfer);
|
||||
self->ref_count = 1;
|
||||
self->type = FP_TRANSFER_NONE;
|
||||
|
||||
self->device = device;
|
||||
|
||||
|
|
|
@ -47,10 +47,10 @@ typedef void (*FpiUsbTransferCallback)(FpiUsbTransfer *transfer,
|
|||
* Type of the transfer.
|
||||
*/
|
||||
typedef enum {
|
||||
FP_TRANSFER_NONE = 0,
|
||||
FP_TRANSFER_BULK,
|
||||
FP_TRANSFER_CONTROL,
|
||||
FP_TRANSFER_INTERRUPT,
|
||||
FP_TRANSFER_NONE = -1,
|
||||
FP_TRANSFER_CONTROL = 0,
|
||||
FP_TRANSFER_BULK = 2,
|
||||
FP_TRANSFER_INTERRUPT = 3,
|
||||
} FpiTransferType;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue