summaryrefslogtreecommitdiff
path: root/libusb/libusbi.h
diff options
context:
space:
mode:
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r--libusb/libusbi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h
index 196f94f..69e565a 100644
--- a/libusb/libusbi.h
+++ b/libusb/libusbi.h
@@ -159,6 +159,10 @@ struct libusb_device {
};
struct libusb_device_handle {
+ /* lock protects claimed_interfaces */
+ pthread_mutex_t lock;
+ unsigned long claimed_interfaces;
+
struct list_head list;
struct libusb_device *dev;
unsigned char os_priv[0];