8 #ifndef META_OCEAN_SYSTEM_USB_USB_H
9 #define META_OCEAN_SYSTEM_USB_USB_H
41 #if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
42 #ifdef USE_OCEAN_SYSTEM_USB_EXPORT
43 #define OCEAN_SYSTEM_USB_EXPORT __declspec(dllexport)
45 #define OCEAN_SYSTEM_USB_EXPORT __declspec(dllimport)
48 #define OCEAN_SYSTEM_USB_EXPORT
This class wraps an unmanaged object (or reference) which needs to be released after usage.
Definition: ScopedObject.h:166
std::vector< ScopedTransfer > ScopedTransfers
Definition of a vector holding scoped libusb transfer objects.
Definition: system/usb/USB.h:68
OCEAN_SYSTEM_USB_EXPORT void releaseTransfer(libusb_transfer *libusbTransfer)
Helper function to free a libusb transfer.
std::unordered_map< libusb_transfer *, size_t > TransferIndexMap
Definition of an unordered map mapping libusb transfer points to indices.
Definition: system/usb/USB.h:73
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15