summaryrefslogtreecommitdiff
path: root/libusb/libusbi.h
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2008-04-18 23:42:40 +0100
committerDaniel Drake <dsd@gentoo.org>2008-04-18 23:42:40 +0100
commit0efd2efa65d5513e5754d717d522b2c5c45332e2 (patch)
tree518b01d9f638f99b2cae0078fc0f0546305014ca /libusb/libusbi.h
parentd2ff2b14a15e5099ff0214502944de30f141a39c (diff)
downloadlibusb-0efd2efa65d5513e5754d717d522b2c5c45332e2.tar.gz
mutex protection for device and handle lists
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r--libusb/libusbi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h
index c589ef6..19b28b6 100644
--- a/libusb/libusbi.h
+++ b/libusb/libusbi.h
@@ -24,6 +24,7 @@
#include <config.h>
#include <endian.h>
+#include <pthread.h>
#include <stddef.h>
#include <sys/select.h>
#include <time.h>
@@ -206,6 +207,7 @@ struct usb_descriptor_header {
/* shared data and functions */
extern struct list_head usbi_open_devs;
+extern pthread_mutex_t usbi_open_devs_lock;
void usbi_io_init(void);