libftdi Archives

Subject: 1.0: Add the list retrieved by libusb_get_device_list to the ftdi_context and only release it on exit

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Matthias Janke <matthias.janke@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Jun 2011 15:11:21 +0200
Hello,

do get the find_all example to run with valgrind without errors, I had to
add 
+    libusb_device **devs;
to the ftdi_ctx.

As ftdi_ctx is not opque yet, this breaks the ABI again. And again there is
the question weather to add in the fitting context or at the end of the
structure.

Appended patch adds it in the fitting context.
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Attachment: 0014-Add-the-list-retrieved-by-libusb_get_device_list-to-.patch
Description: Binary data

Current Thread
  • 1.0: Add the list retrieved by libusb_get_device_list to the ftdi_context and only release it on exit, Uwe Bonnes <=