Deleted Added
full compact
1c1
< /* $FreeBSD: head/lib/libusb/libusb.h 194676 2009-06-23 01:04:58Z thompsa $ */
---
> /* $FreeBSD: head/lib/libusb/libusb.h 195560 2009-07-10 14:15:53Z thompsa $ */
29a30,34
> #include <sys/time.h>
> #include <sys/types.h>
> #include <sys/endian.h>
> #include <sys/queue.h>
>
35,37d39
< #include <sys/time.h>
< #include <sys/types.h>
< #include <sys/endian.h>
47,50d48
< struct list_head {
< struct list_head *prev, *next;
< };
<
185a184,210
> /* internal structures */
>
> typedef struct libusb_pollfd {
> int fd;
> short events;
> } libusb_pollfd;
>
> struct usb_pollfd {
> TAILQ_ENTRY(usb_pollfd) list;
> struct libusb_pollfd pollfd;
> };
>
> struct usb_transfer {
> TAILQ_ENTRY(usb_transfer) list;
> int num_iso_packets;
> struct timeval timeout;
> int transferred;
> uint8_t flags;
> };
>
> struct usb_ep_tr {
> TAILQ_ENTRY(usb_ep_tr) list;
> uint8_t addr;
> uint8_t idx;
> uint8_t flags;
> void *os_priv;
> };
197c222
< struct list_head usb_devs;
---
> TAILQ_HEAD(usb_devs_list, libusb_device) usb_devs;
200c225
< struct list_head open_devs;
---
> TAILQ_HEAD(open_devs_list, libusb_device_handle) open_devs;
203c228
< struct list_head flying_transfers;
---
> TAILQ_HEAD(flying_transfers_list, usb_transfer) flying_transfers;
206c231
< struct list_head pollfds;
---
> TAILQ_HEAD(pollfds_list, usb_pollfd) pollfds;
233c258
< struct list_head list;
---
> TAILQ_ENTRY(libusb_device) list;
242c267
< struct list_head list;
---
> TAILQ_ENTRY(libusb_device_handle) list;
244a270
> TAILQ_HEAD(ep_list, usb_ep_tr) ep_list;
346,350d371
< typedef struct libusb_pollfd {
< int fd;
< short events;
< } libusb_pollfd;
<
362a384
> int libusb_clear_halt(libusb_device_handle *devh, unsigned char endpoint);