Files
fluxengine/lib/usb/usbfinder.h
David Given 4f0a5e854c Attempt to rework the USB handling to make the GreaseWeazle work on Windows and
Mac --- we abandon autodetection for anything other that FluxEngines as libusb
is painfully inconsistent with serial devices.
2021-05-23 18:53:25 +01:00

18 lines
273 B
C++

#ifndef USBSERIAL_H
#define USBSERIAL_H
#include <libusb.h>
struct CandidateDevice
{
libusb_device* device;
libusb_device_descriptor desc;
uint32_t id;
std::string serial;
};
extern std::vector<std::unique_ptr<CandidateDevice>> findUsbDevices(uint32_t id);
#endif