Jan Vcelak 5596998
From 511324a538a034f7f0766b7689ed50ed4e21ee43 Mon Sep 17 00:00:00 2001
Jan Vcelak 5596998
From: Daniel Drake <dsd@gentoo.org>
Jan Vcelak 5596998
Date: Thu, 17 Sep 2009 23:49:53 +0545
Jan Vcelak 5596998
Subject: [PATCH] Document breakage from internal handle structure change
Jan Vcelak 5596998
Jan Vcelak 5596998
Code exists which expects usb_dev_handle to always have the same
Jan Vcelak 5596998
contents as it did in libusb-0.1.12. Such code will not work with the
Jan Vcelak 5596998
compat layer since the structure has changed.
Jan Vcelak 5596998
---
Jan Vcelak 5596998
 README |    5 +++++
Jan Vcelak 5596998
 1 files changed, 5 insertions(+), 0 deletions(-)
Jan Vcelak 5596998
Jan Vcelak 5596998
diff --git a/README b/README
Jan Vcelak 5596998
index 15f17a5..97ab68d 100644
Jan Vcelak 5596998
--- a/README
Jan Vcelak 5596998
+++ b/README
Jan Vcelak 5596998
@@ -29,6 +29,11 @@ Known quirks/differences from libusb-0.1:
Jan Vcelak 5596998
  5. Error codes returned on certain events may not exactly match the error
Jan Vcelak 5596998
     codes returned by libusb-0.1. Patches accepted to bring us closer to the
Jan Vcelak 5596998
     behaviour of libusb-0.1 on Linux.
Jan Vcelak 5596998
+ 6. The internal structure of usb_dev_handle is different from libusb-0.1. Of
Jan Vcelak 5596998
+    course, since this is a purely internal structure, that shouldn't cause
Jan Vcelak 5596998
+    any problems. In reality, some libusb-0.1 users make assumptions about what
Jan Vcelak 5596998
+    is inside (bad programming practice) and those assumptions are no longer
Jan Vcelak 5596998
+    true, resulting in broken software.
Jan Vcelak 5596998
 
Jan Vcelak 5596998
 libusb homepage:
Jan Vcelak 5596998
 http://libusb.sourceforge.net
Jan Vcelak 5596998
-- 
Jan Vcelak 5596998
1.7.2.2
Jan Vcelak 5596998