libusb.h   libusb.h 
skipping to change at line 695 skipping to change at line 695
/** Status code for this packet */ /** Status code for this packet */
enum libusb_transfer_status status; enum libusb_transfer_status status;
}; };
struct libusb_transfer; struct libusb_transfer;
typedef void (*libusb_transfer_cb_fn)(struct libusb_transfer *transfer); typedef void (*libusb_transfer_cb_fn)(struct libusb_transfer *transfer);
/** \ingroup asyncio /** \ingroup asyncio
* The generic USB transfer structure. * The generic USB transfer structure. The user populates this structure an
d
* then submits it in order to request a transfer. After the transfer has
* completed, the library populates the transfer with the results and passe
s
* it back to the user.
*/ */
struct libusb_transfer { struct libusb_transfer {
/** Handle of the device that this transfer will be submitted to */ /** Handle of the device that this transfer will be submitted to */
libusb_device_handle *dev_handle; libusb_device_handle *dev_handle;
/** A bitwise OR combination of \ref libusb_transfer_flags. */ /** A bitwise OR combination of \ref libusb_transfer_flags. */
uint8_t flags; uint8_t flags;
/** Address of the endpoint where this transfer will be sent. */ /** Address of the endpoint where this transfer will be sent. */
unsigned char endpoint; unsigned char endpoint;
skipping to change at line 791 skipping to change at line 794
libusb_device_handle *libusb_open_device_with_vid_pid(libusb_context *ctx, libusb_device_handle *libusb_open_device_with_vid_pid(libusb_context *ctx,
uint16_t vendor_id, uint16_t product_id); uint16_t vendor_id, uint16_t product_id);
int libusb_set_interface_alt_setting(libusb_device_handle *dev, int libusb_set_interface_alt_setting(libusb_device_handle *dev,
int interface_number, int alternate_setting); int interface_number, int alternate_setting);
int libusb_clear_halt(libusb_device_handle *dev, unsigned char endpoint); int libusb_clear_halt(libusb_device_handle *dev, unsigned char endpoint);
int libusb_reset_device(libusb_device_handle *dev); int libusb_reset_device(libusb_device_handle *dev);
int libusb_kernel_driver_active(libusb_device_handle *dev, int interface); int libusb_kernel_driver_active(libusb_device_handle *dev, int interface);
int libusb_detach_kernel_driver(libusb_device_handle *dev, int interface); int libusb_detach_kernel_driver(libusb_device_handle *dev, int interface);
int libusb_attach_kernel_driver(libusb_device_handle *dev, int interface);
/* async I/O */ /* async I/O */
/** \ingroup asyncio /** \ingroup asyncio
* Get the data section of a control transfer. This convenience function is here * Get the data section of a control transfer. This convenience function is here
* to remind you that the data does not start until 8 bytes into the actual * to remind you that the data does not start until 8 bytes into the actual
* buffer, as the setup packet comes first. * buffer, as the setup packet comes first.
* *
* Calling this function only makes sense from a transfer callback function , * Calling this function only makes sense from a transfer callback function ,
* or situations where you have already allocated a suitably sized buffer a t * or situations where you have already allocated a suitably sized buffer a t
 End of changes. 2 change blocks. 
1 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/