diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-03-09 16:12:08 +0000 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2008-03-09 16:12:08 +0000 |
commit | ebad1c79688ba603ad017ed0fe2f3c0dc8edd1ad (patch) | |
tree | 0760247ba06645c332a99d336215312c1cf9356c /libusb/sync.c | |
parent | 1ac0a7d88f282b6f293c456fac8edb143cbaca3d (diff) | |
download | libusb-ebad1c79688ba603ad017ed0fe2f3c0dc8edd1ad.tar.gz |
Rename libusb_dev_handle to libusb_device_handle
Diffstat (limited to 'libusb/sync.c')
-rw-r--r-- | libusb/sync.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libusb/sync.c b/libusb/sync.c index 2bcfc5b..720f6f9 100644 --- a/libusb/sync.c +++ b/libusb/sync.c @@ -33,7 +33,7 @@ static void ctrl_transfer_cb(struct libusb_transfer *transfer) /* caller interprets result and frees transfer */ } -API_EXPORTED int libusb_control_transfer(libusb_dev_handle *dev_handle, +API_EXPORTED int libusb_control_transfer(libusb_device_handle *dev_handle, uint8_t bRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, unsigned char *data, uint16_t wLength, unsigned int timeout) { @@ -102,7 +102,7 @@ static void bulk_transfer_cb(struct libusb_transfer *transfer) /* caller interprets results and frees transfer */ } -static int do_sync_bulk_transfer(struct libusb_dev_handle *dev_handle, +static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, unsigned char endpoint, unsigned char *buffer, int length, int *transferred, unsigned int timeout, unsigned char endpoint_type) { @@ -150,7 +150,7 @@ static int do_sync_bulk_transfer(struct libusb_dev_handle *dev_handle, } /* FIXME: should transferred be the return value? */ -API_EXPORTED int libusb_bulk_transfer(struct libusb_dev_handle *dev_handle, +API_EXPORTED int libusb_bulk_transfer(struct libusb_device_handle *dev_handle, unsigned char endpoint, unsigned char *data, int length, int *transferred, unsigned int timeout) { @@ -159,9 +159,9 @@ API_EXPORTED int libusb_bulk_transfer(struct libusb_dev_handle *dev_handle, } /* FIXME: do we need an interval param here? usbfs doesn't expose it? */ -API_EXPORTED int libusb_interrupt_transfer(struct libusb_dev_handle *dev_handle, - unsigned char endpoint, unsigned char *data, int length, int *transferred, - unsigned int timeout) +API_EXPORTED int libusb_interrupt_transfer( + struct libusb_device_handle *dev_handle, unsigned char endpoint, + unsigned char *data, int length, int *transferred, unsigned int timeout) { return do_sync_bulk_transfer(dev_handle, endpoint, data, length, transferred, timeout, LIBUSB_ENDPOINT_TYPE_INTERRUPT); |