LIBUSB_API_VERSION is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

LIBUSB_API_VERSION macro

\def LIBUSB_API_VERSION libusb's API version. Since version 1.0.18, to help with feature detection, libusb defines a LIBUSB_API_VERSION macro that gets increased every time there is a significant change to the API, such as the introduction of a new call, the definition of a new macro/enum member, or any other element that libusb applications may want to detect at compilation time. Between versions 1.0.13 and 1.0.17 (inclusive) the older spelling of LIBUSBX_API_VERSION was used. The macro is typically used in an application as follows: \code #if defined(LIBUSB_API_VERSION) && (LIBUSB_API_VERSION >= 0x01001234) // Use one of the newer features from the libusb API #endif \endcode Internally, LIBUSB_API_VERSION is defined as follows: (libusb major << 24) | (libusb minor << 16) | (16 bit incremental) The incremental component has changed as follows: libusbx version 1.0.13: LIBUSBX_API_VERSION = 0x01000100 libusbx version 1.0.14: LIBUSBX_API_VERSION = 0x010000FF libusbx version 1.0.15: LIBUSBX_API_VERSION = 0x01000101 libusbx version 1.0.16: LIBUSBX_API_VERSION = 0x01000102 libusbx version 1.0.17: LIBUSBX_API_VERSION = 0x01000102 libusb version 1.0.18: LIBUSB_API_VERSION = 0x01000102 libusb version 1.0.19: LIBUSB_API_VERSION = 0x01000103 libusb version 1.0.20: LIBUSB_API_VERSION = 0x01000104 libusb version 1.0.21: LIBUSB_API_VERSION = 0x01000105 libusb version 1.0.22: LIBUSB_API_VERSION = 0x01000106 libusb version 1.0.23: LIBUSB_API_VERSION = 0x01000107 libusb version 1.0.24: LIBUSB_API_VERSION = 0x01000108 libusb version 1.0.25: LIBUSB_API_VERSION = 0x01000109 libusb version 1.0.26: LIBUSB_API_VERSION = 0x01000109 libusb version 1.0.27: LIBUSB_API_VERSION = 0x0100010A

Syntax

#define LIBUSB_API_VERSION 0x0100010A

References

LocationText
libusb.h:171
#define LIBUSB_API_VERSION 0x0100010A