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 = g_slice_new0 (FpiUsbTransfer);
|
||||||
self->ref_count = 1;
|
self->ref_count = 1;
|
||||||
|
self->type = FP_TRANSFER_NONE;
|
||||||
|
|
||||||
self->device = device;
|
self->device = device;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue