Date: Fri, 29 May 2009 16:56:42 GMT From: Sylvestre Gallon <syl@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 163033 for review Message-ID: <200905291656.n4TGugSt076553@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=163033 Change 163033 by syl@syl_rincewind on 2009/05/29 16:55:50 Remove macros that are now in libusb10.h. Affected files ... .. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.h#2 edit .. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_io.c#2 edit Differences ... ==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.h#2 (text+ko) ==== ==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_io.c#2 (text+ko) ==== @@ -38,34 +38,6 @@ #include "libusb.h" #include "libusb10.h" -extern struct libusb_context *usbi_default_context; - -#define GET_CONTEXT(ctx) \ - if (ctx == NULL) ctx = usbi_default_context; - -#define USB_LIST_EMPTY(entry) \ - ((entry)->next = (entry)) -#define LIST_ENT(ptr, type, member) \ - ((type *)((char *)(ptr) - (unsigned long) (&((type*)0L)->member))) - -#define LIST_FOREACH_ENTRY(pos, head, member) \ - for (pos = LIST_ENT((head)->next, typeof(*pos), member) ; \ - &pos->member != head ; \ - pos = LIST_ENT(pos->member.next, typeof(*pos), member)) - -struct usb_pollfd { - struct libusb_pollfd pollfd; - struct list_head list; -}; - -struct usb_transfer { - int num_iso_packets; - struct list_head list; - struct timeval timeout; - int transferred; - uint8_t flags; -}; - static int get_next_timeout(libusb_context *ctx, struct timeval *tv, struct timeval *out) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905291656.n4TGugSt076553>