libusbi.h: Add IS_EPIN() IS_EPOUT() IS_XFERIN() and IS_XFEROUT() macros
authorPeter Stuge <peter@stuge.se>
Thu, 22 Mar 2012 00:52:59 +0000 (01:52 +0100)
committerPeter Stuge <peter@stuge.se>
Thu, 22 Mar 2012 00:57:25 +0000 (01:57 +0100)
commit76af4c99bd6122c1dd7b58858b669c919d8c8806
tree75bb226962316771d249208b3104e0fbb583876e
parente3d0a4cb9e2f9872c9fdbb22d7ded169e111fc8f
libusbi.h: Add IS_EPIN() IS_EPOUT() IS_XFERIN() and IS_XFEROUT() macros

The macros make backend code a little simpler to read, since the
transfer and endpoint direction is checked in several places across
the supported platforms.
libusb/libusbi.h
libusb/os/darwin_usb.c
libusb/os/openbsd_usb.c
libusb/os/windows_usb.c