aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2024-01-03 19:51:38 -0500
committerTormod Volden <debian.tormod@gmail.com>2024-01-19 20:34:50 +0100
commit9a4ec8b3817adc6c06982616e5e9956eb3a9de3d (patch)
tree98e21935f74ee0f44ea1d037bcb06c489bdba33e
parentf080aec7764da1b378e5ada712d0764ff5a79124 (diff)
downloadlibusb-9a4ec8b3817adc6c06982616e5e9956eb3a9de3d.tar.gz
Document backend functions that already lock dev_handle->lock
Closes #1410
-rw-r--r--libusb/libusbi.h4
-rw-r--r--libusb/version_nano.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h
index c6e032d..3b0c610 100644
--- a/libusb/libusbi.h
+++ b/libusb/libusbi.h
@@ -1196,6 +1196,8 @@ struct usbi_os_backend {
* claiming, no other drivers/applications can use the interface because
* we now "own" it.
*
+ * This function gets called with dev_handle->lock locked!
+ *
* Return:
* - 0 on success
* - LIBUSB_ERROR_NOT_FOUND if the interface does not exist
@@ -1215,6 +1217,8 @@ struct usbi_os_backend {
* You will only ever be asked to release an interface which was
* successfully claimed earlier.
*
+ * This function gets called with dev_handle->lock locked!
+ *
* Return:
* - 0 on success
* - LIBUSB_ERROR_NO_DEVICE if the device has been disconnected since it
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 208969c..6775980 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11867
+#define LIBUSB_NANO 11868