diff options
Diffstat (limited to 'utils/hwstub/include')
-rw-r--r-- | utils/hwstub/include/hwstub_usb.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/hwstub/include/hwstub_usb.hpp b/utils/hwstub/include/hwstub_usb.hpp index 15a0fcaaec..579594067c 100644 --- a/utils/hwstub/include/hwstub_usb.hpp +++ b/utils/hwstub/include/hwstub_usb.hpp @@ -101,6 +101,10 @@ public: void set_timeout(std::chrono::milliseconds ms); protected: + /* return the maximum size of a libusb control transfer, this is a "known" + * limitation that is completely undocumented (sigh) and applies at least + * to linux and windows hosts */ + size_t max_libusb_control_xfer_size() const; /* interpret libusb error: >=0 means SUCCESS, others are treated as errors, * LIBUSB_ERROR_NO_DEVICE is treated as DISCONNECTED */ error interpret_libusb_error(int err); |