Displaying 2 results from an estimated 2 matches for "usb_communication_subdriver_s".
Did you mean:
usb_communication_subdriver_t
2010 Mar 25
1
new TSSHARA SOHO II ups
...king at libusb.c I realized there's a libusb_get_interrupt()
which can be used to read from the endpoint, however there's no counterpart
libusb_set_interrupt() API and usb_communication_subdriver_t structure
doesn't contain a *set_interrupt element as well:
libusb.h
....
typedef struct usb_communication_subdriver_s {
char *name; /* name of this
subdriver */
char *version; /* version of this
subdriver */
int (*open)(usb_dev_handle **sdevp, /* try to open the next
available */
USBDevic...
2020 Apr 03
0
Powercool PCRACK-1200VA patch update
... string, sizeof(string));
if (ret > 0) {
curDevice->Serial = strdup(string);
diff --git a/drivers/libusb.h b/drivers/libusb.h
index 66d26335..46414da1 100644
--- a/drivers/libusb.h
+++ b/drivers/libusb.h
@@ -60,6 +60,8 @@ typedef struct usb_communication_subdriver_s {
unsigned char *buf, int bufsize, int timeout);
} usb_communication_subdriver_t;
+int nut_usb_get_string(usb_dev_handle *dev, int index, char *buf,
size_t buflen);
+
extern usb_communication_subdriver_t usb_subdriver;
#endif /* LIBUSB_H */
diff --git a/drivers/main.c b/drivers/ma...