PERFORCE change 163033 for review
Sylvestre Gallon
syl at FreeBSD.org
Fri May 29 16:56:44 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=163033
Change 163033 by syl at 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)
{
More information about the p4-projects
mailing list