summaryrefslogtreecommitdiff
path: root/utils/hwstub/include/hwstub_usb.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/hwstub/include/hwstub_usb.hpp')
-rw-r--r--utils/hwstub/include/hwstub_usb.hpp4
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:
101 void set_timeout(std::chrono::milliseconds ms); 101 void set_timeout(std::chrono::milliseconds ms);
102 102
103protected: 103protected:
104 /* return the maximum size of a libusb control transfer, this is a "known"
105 * limitation that is completely undocumented (sigh) and applies at least
106 * to linux and windows hosts */
107 size_t max_libusb_control_xfer_size() const;
104 /* interpret libusb error: >=0 means SUCCESS, others are treated as errors, 108 /* interpret libusb error: >=0 means SUCCESS, others are treated as errors,
105 * LIBUSB_ERROR_NO_DEVICE is treated as DISCONNECTED */ 109 * LIBUSB_ERROR_NO_DEVICE is treated as DISCONNECTED */
106 error interpret_libusb_error(int err); 110 error interpret_libusb_error(int err);