<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.lib.libusb.devel.general">
    <title>gmane.comp.lib.libusb.devel.general</title>
    <link>http://blog.gmane.org/gmane.comp.lib.libusb.devel.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19951"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19945"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19944"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19932"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19927"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19922"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19920"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19908"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19904"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19888"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19887"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19885"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19877"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19860"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19857"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19853"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19852"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19849"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19847"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19845"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19951">
    <title>confuse-2.6 required to support uClinux/Nios2</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19951</link>
    <description>&lt;pre&gt;hi,

[libusb-1.0.16-rc10] requires [confuse-2.5], which does not cross compile
for uClinux/NiosII.

[confuse-2.6] has the updated configure script that compiles successfully.

thanks,
mav
------------------------------------------------------------------------------
Try New Relic Now &amp;amp; We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, &amp;amp; servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may_______________________________________________
libusb-devel mailing list
libusb-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
&lt;/pre&gt;</description>
    <dc:creator>mav</dc:creator>
    <dc:date>2013-05-24T20:30:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19945">
    <title>libusb-1.0.16-rc10 without udev ?</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19945</link>
    <description>&lt;pre&gt;Hi,

I need to use "libftdi1" that requires libusb-1.0.16-rc10. The
compilation of libusb-1.0.16-rc10 fails as described below.

"./configure --with-udev=no" output:
configure: error: "udev support requested but libudev not installed"

It seems libusb configure script does not handle "--with-udev" when
set to ''no".

"./configure --disable-udev" fails on netlink compilation.

I am using uClinux with 2.6.28 kernel and have described my setup at:
http://developer.intra2net.com/mailarchive/html/libftdi/2013/msg00228.html

My question is whether libusb-1.0.16-rc10 can be used without udev?

thanks,
mav

------------------------------------------------------------------------------
Try New Relic Now &amp;amp; We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, &amp;amp; servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2&lt;/pre&gt;</description>
    <dc:creator>mav</dc:creator>
    <dc:date>2013-05-24T19:00:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19944">
    <title>hidapi: does not handle kernel version correctly for &gt; 3</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19944</link>
    <description>&lt;pre&gt;Hi,

hidapi does not handle kernel version &amp;gt;= v3.x correctly; it expects 3
values while only 2 are available.

This should fix that:

diff --git a/linux/hid.c b/linux/hid.c
index 38f6753..e4295e9 100644
--- a/linux/hid.c
+++ b/linux/hid.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -602,11 +602,16 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; hid_device * HID_API_EXPORT hid_open_path(const char *path)
 
        if (kernel_version == 0) {
                struct utsname name;
-               int major, minor, release;
+               int major, minor, release = 0;
                int ret;
+
                uname(&amp;amp;name);
+
                ret = sscanf(name.release, "%d.%d.%d", &amp;amp;major, &amp;amp;minor, &amp;amp;release);
-               if (ret == 3) {
+               if (ret != 3)
+                       ret = sscanf(name.release, "%d.%d", &amp;amp;major, &amp;amp;minor);
+
+               if (ret == 2 || ret == 3) {
                        kernel_version = major &amp;lt;&amp;lt; 16 | minor &amp;lt;&amp;lt; 8 | release;
                        //printf("Kernel Version: %d\n", kernel_version);
                }


Folkert van Heusden

&lt;/pre&gt;</description>
    <dc:creator>folkert</dc:creator>
    <dc:date>2013-05-24T19:02:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19932">
    <title>LibusbJava wrapper on Raspberry Pi</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19932</link>
    <description>&lt;pre&gt;Hi,

I managed to build a java application that uses the LibusbJava wrapper on
Windows, but my intention was to run it on the Raspberry Pi.
I've been trying for a while, but I can't seem to set up the Raspberry for
using it.
I'm no linux expert, so this is pretty hard for me.
I'm trying to use the LibusbJava wrapper over libusb-0.1.12.

Any help would be greatly appreciated!
Cheers.
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d_______________________________________________
libusb-devel mailing list
libusb-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
&lt;/pre&gt;</description>
    <dc:creator>Gustavo Belisário</dc:creator>
    <dc:date>2013-05-19T18:05:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19927">
    <title>Linux, USB3.0, libusb-darwin, libusb_submit_transfer() fail: not a BUG</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19927</link>
    <description>&lt;pre&gt;But is not a BUG of libusb-darwin.
With USB2.0 the max isochronous size can be 3x1024 byte every 125us
With USB3.0 the max isochronous size can be 1x1024 * mult * bust every 125us
if mult=3, with burst=2 libusb can allocate and submit a isocronous,
with bust=3 and more the fuction libusb_submit_transfer() return a errors:
libusb: 0.000000 error [submit_iso_transfer] submiturb failed error -1 
errno=22
but is not a bug of libusb, but a limitation of linux kernel
in the file of kernel 3.8 and 3.9
drivers/usb/core/devio.c:
...
         for (totlen = u = 0; u &amp;lt; uurb-&amp;gt;number_of_packets; u++) {
             /* arbitrary limit,
              * sufficient for USB 2.0 high-bandwidth iso */
             if (isopkt[u].length &amp;gt; 8192) {
                 ret = -EINVAL;
                 goto error;
             }
             totlen += isopkt[u].length;
         }
...

I have increased, compiled, tested and work correct.

Now for USB 3.0 the "arbitrary limit" needed to be incremented
If somebody can ask to increase this va&lt;/pre&gt;</description>
    <dc:creator>Federico Manzan</dc:creator>
    <dc:date>2013-05-16T21:01:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19922">
    <title>[libusb] #173: libusb_get_max_iso_packet_size() with USB3.0,return the USB2.0 value</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19922</link>
    <description>&lt;pre&gt;#173: libusb_get_max_iso_packet_size() with USB3.0, return the USB2.0 value
--------------------+----------------------------------------
 Reporter:  manzo   |       Owner:
     Type:  defect  |      Status:  new
Milestone:          |   Component:  libusb-1.0 Darwin backend
 Keywords:          |  Blocked By:
   Blocks:          |
--------------------+----------------------------------------
 libusb_get_max_iso_packet_size() not consider the
 libusb_ss_endpoint_companion_descriptor and return the size in the USB2.0
 descriptor, for understand in the USB3.0 the isochronous work with burst

 I propose this patch:

 {{{
 diff --git a/libusb/core.c b/libusb/core.c
 index 90c4247..7043ee3 100644
 --- a/libusb/core.c
 +++ b/libusb/core.c
 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -864,7 +864,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; int API_EXPORTED
 libusb_get_max_iso_packet_size(libusb_device *dev,
         const struct libusb_endpoint_descriptor *ep;
         enum libusb_transfer_type ep_type;
         uint16_t val;
 -       int r;
 +       int r,s;

         r = libusb_get_active_confi&lt;/pre&gt;</description>
    <dc:creator>libusb Trac</dc:creator>
    <dc:date>2013-05-15T19:24:25</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19920">
    <title>Strange Problem</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19920</link>
    <description>&lt;pre&gt;We have a client reporting a strange problem.  The details are sketchy,
but I wanted to ask here in case it was familiar to anyone.

The product is a somewhat unusual camera designed for astronomical use
(they are particularly good at extracting photons in very low-light
situations).  It is not UVC.  The USB chip is a Cypress FX2.  Transfers
are done over a bulk pipe, with lots of register and status access via
vendor commands.  My client has sold these products  for more than 10
years, in Windows (WinUSB) and in Linux (libusb), with very few problems.

Now, they have one client using their camera on a small board computer
running Linux 2.6.32.  What they're reporting is that, every 4 to 6
days, they have a vendor command time out (LIBUSB_ERROR_TIMEOUT).  After
the timeout, further actions on the control pipe get LIBUSB_ERROR_PIPE. 
It's necessary to close and re-open the device in order to recover.  The
control pipe request has a timeout of 10 seconds, and we see that 10
second gap in the app logs.  We don'&lt;/pre&gt;</description>
    <dc:creator>Tim Roberts</dc:creator>
    <dc:date>2013-05-13T23:11:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19908">
    <title>2 devices connected to a hub</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19908</link>
    <description>&lt;pre&gt;I have 1 keyboard and 1 usb mic/speaker connected to host through a usb hub. 

Keyboard is controlled by os. I am controlling the audio device through
libusb with iso transfers. 

With keyboard plugged,  I'm getting errno 28 (busy) on submitting the
transfer for usb mic. I do detach/claim before starting the transfer. Is
this a bandwidth issue ? How can I get 2 device to host transfers running
simultaneously with libusb.

Any pointers is helpful.



--
View this message in context: http://libusb.6.n5.nabble.com/2-devices-connected-to-a-hub-tp5711940.html
Sent from the LibUSB Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_&lt;/pre&gt;</description>
    <dc:creator>kgokare</dc:creator>
    <dc:date>2013-05-07T21:10:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19904">
    <title>1.0.16-rc10 up</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19904</link>
    <description>&lt;pre&gt;The latest release candiate for 1.0.16 is up. The change log since 1.0.16-rc8 can be found below. Please continue to give feedback on the release candidates. Once I get more feedback from Peter we will get the final release out.

commit bcc159ec9156201544c249bb4a87f8f24cc34e0a
Author: Hans de Goede &amp;lt;hdegoede&amp;lt; at &amp;gt;redhat.com&amp;gt;
Date:   Thu Mar 7 11:44:00 2013 +0000

    Linux: Consume all events on a fd in one go
    
    * This fixes libusb_handle_events_timeout() only handling one event
    * Fixes #123
    
    Conflicts:
        libusb/version_nano.h

commit c703ab72d0398c18686c2970730cd580e2d1f46c
Author: Sean McBride &amp;lt;sean&amp;lt; at &amp;gt;rogue-research.com&amp;gt;
Date:   Fri Oct 12 17:34:25 2012 -0400

    Core: use C99 flexible array member when possible
    
    fix clang warning by using C99 flexible array member instead of zero
    length array gcc extension

    Fixes #2
    
    Conflicts:
        libusb/libusbi.h

commit 66553c2e8219d84e3e8857b18341782e1ca82a58
Author: Nathan Hjelm &amp;lt;hjelmn&amp;lt; at &amp;gt;me.com&amp;gt;
Date:   Fri May 3 08:03:37&lt;/pre&gt;</description>
    <dc:creator>Nathan Hjelm</dc:creator>
    <dc:date>2013-05-07T03:02:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19888">
    <title>control transfer</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19888</link>
    <description>&lt;pre&gt;Dear sir,

i am trying the control transfer part but m not sure from where this list
argument i can get which has to be passed to the function below


int libusb_control_transfer(handle *h, unsigned char bmRequestType, unsigned
char bRequest, unsigned short wValue,
                                unsigned short wIndex, unsigned char *data,
unsigned short wLength, unsigned int timeout)



i aam understanding the bulk transfer part but how n from these control
transfer func arguments comes sry for lil silly que but please kindly rply
so tht i cn understnd the things going on.
how select these values to be passed to function.



Thanks &amp;amp; Regards
Rohan




--
View this message in context: http://libusb.6.n5.nabble.com/control-transfer-tp5711905.html
Sent from the LibUSB Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application -&lt;/pre&gt;</description>
    <dc:creator>rohan</dc:creator>
    <dc:date>2013-05-06T10:14:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19887">
    <title>control transfer</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19887</link>
    <description>&lt;pre&gt;Dear sir,

i am trying the control transfer part but m not sure from where this list
argument i can get which has to be passed to the function below


int cyusb_control_transfer(cyusb_handle *h, unsigned char bmRequestType,
unsigned char bRequest, unsigned short wValue,
                                unsigned short wIndex, unsigned char *data,
unsigned short wLength, unsigned int timeout)



i aam understanding the bulk transfer part but how n from these control
transfer func arguments comes sry for lil silly que but please kindly rply
so tht i cn understnd the things going on.
how select these values to be passed to function.



Thanks &amp;amp; Regards
Rohan
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with &amp;lt;2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.&lt;/pre&gt;</description>
    <dc:creator>rohan vichare</dc:creator>
    <dc:date>2013-05-06T09:59:13</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19885">
    <title>LibUSB Interrupt Transfer</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19885</link>
    <description>&lt;pre&gt;I am working on a UVC Compliant USB Webcam. 

I am writing a standalone driver for this device using LibUSB instead of
using the UVC driver in the Linux Kernel.

I am facing a issue with sending interrupt packets to this device.

My Interrupt Endpoint descriptor is 


   bLength: 0x07
   bDescriptorType:0x05
   bEndpointAddress:0x87 -&amp;gt; Direction: IN - EndpointID: 7
   bmAttributes: 0x03 -&amp;gt; Interrupt Transfer Type
   wMaxPacketSize:0x0010 = 1 transactions per microframe, 0x10 max bytes
   bInterval:0x08


I am allocating interrupt transfers as follows

static struct libusb_transfer *allocate_int_transfer(libusb_device_handle
*handle)
{

  struct libusb_transfer *transfer = libusb_alloc_transfer(0);
  if (!transfer)
    printf("transfer alloc failure");
 
 
  unsigned char int_buf[16];
  libusb_fill_interrupt_transfer(transfer,handle,0x87, 
 int_buf, sizeof(int_buf),interrupt_callback, NULL, 0); 

  return transfer;
}


My Callback function is this:

static void interrupt_callback(struct libusb_transfer *tra&lt;/pre&gt;</description>
    <dc:creator>jay.k</dc:creator>
    <dc:date>2013-05-05T20:59:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19877">
    <title>Mac OSX Java Crashing when using libusb</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19877</link>
    <description>&lt;pre&gt;hi,

I was successfully using gphoto2 for a while now for a java program I have written. There is a bug however, that when i disconnect the camera, libusb disconnect seems to make my computer crash. Now to try and see if the new version has fixed this I tried to use libusb 1.0.16 rc9

I then ran the following:

.configure
make
make install


after that, my java program won't even start up when using photo/libusb. I tried to uninstall it using make uninstall and then resinstall the older version libusb 1.0.9 and the lib usb compat using mac ports. but still have the same problem and cannot use photo.


Please help me with this as I desperately need my program to work in 2 days. I just wanted to see if any has a clue on what is going wrong and how I can revert it back to the older (working) version. This should teach me to start using backups and be careful compiling source code in linux/mac osx.

Here is the crash dump:

Process:         java [288]
Path:            /usr/bin/java
Identifier:      com.apple.jav&lt;/pre&gt;</description>
    <dc:creator>Dennis Angelo</dc:creator>
    <dc:date>2013-05-05T05:52:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19860">
    <title>[libusb] #172: get_active_config_descriptor function returns wrongerror when device is not configured</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19860</link>
    <description>&lt;pre&gt;#172: get_active_config_descriptor function returns wrong error when device is
not configured
--------------------+----------------------------------------
 Reporter:  kayahr  |       Owner:
     Type:  defect  |      Status:  new
Milestone:          |   Component:  libusb-1.0 Darwin backend
 Keywords:          |  Blocked By:
   Blocks:          |
--------------------+----------------------------------------
 The darwin backend returns LIBUSB_ERROR_INVALID_PARAM in
 get_active_config_descriptor() when device is not configured. The
 documentation says it returns LIBUSB_ERROR_NOT_FOUND in this case.

 The following patch fixes this:

 {{{
 diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
 index 3d2c4a6..6313437 100644
 --- a/libusb/os/darwin_usb.c
 +++ b/libusb/os/darwin_usb.c
 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -465,7 +465,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int darwin_get_active_config_descriptor(struct
 libusb
    int config_index;

    if (0 == priv-&amp;gt;active_config)
 -    return LIBUSB_ERROR_INVALID_PARAM;
 +    return LIBUSB_ERROR_NOT_FOUND;

    co&lt;/pre&gt;</description>
    <dc:creator>libusb Trac</dc:creator>
    <dc:date>2013-05-03T11:10:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19857">
    <title>Using a member function for libusb_transfer_cb_fn callback</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19857</link>
    <description>&lt;pre&gt;Libusb developers,

In my Linux C++ application, multiple instances of my USB data handler object will be created to handle multiple USB devices that are connected to different ports.  The object is using asynchronous IO to communicate to the device therefore I want to use the member function of my object as the callback.  Does anyone have any sample code that uses an object's member function as the libusb_transfer_cb_fn callback?

I tried the code below but I keep getting a seg fault when I make the callback using the libusb_transfer structure.

I created the following functor:

class LibUsbTransferFunctor
{
  public:
    LibUsbTransferFunctor (USBStrategyST *pObject, void (USBStrategyST::*pMemFun)(struct libusb_transfer *transfer));
    void operator () (struct libusb_transfer *transfer);

//private:
      USBStrategyST *m_pObject;  // pointer to object
      void (USBStrategyST::*m_pMemFun)(struct libusb_transfer *transfer);   // pointer to member function
};

And initialize the functor with my object and&lt;/pre&gt;</description>
    <dc:creator>Doak, Roger (GE Healthcare</dc:creator>
    <dc:date>2013-04-24T14:19:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19853">
    <title>undefined reference to usb_init(à, etc.</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19853</link>
    <description>&lt;pre&gt;Hello.
I think I have a problem. I installed libusb-1.0 and got the header. But
when I try to call "usb_init()" or "usb_find_busses()", etc., I have this :
"undefined reference to `usb_nit()` and so on.
I included usb.h and libusb.h.
I think I'm missing the .c for all these functions but where can I find them
? Were they provided with libusb ?
Thank you.



--
View this message in context: http://libusb.6.n5.nabble.com/undefined-reference-to-usb-init-a-etc-tp5711794.html
Sent from the LibUSB Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with &amp;lt;2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
&lt;/pre&gt;</description>
    <dc:creator>Kuryu</dc:creator>
    <dc:date>2013-04-22T09:13:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19852">
    <title>Using a member function for libusb_transfer_cb_fn callback</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19852</link>
    <description>&lt;pre&gt;Libusb developers,

In my Linux C++ application, multiple instances of my USB data handler object will be created to handle multiple USB devices that are connected to different ports.  The object is using asynchronous IO to communicate to the device therefore I want to use the member function of my object as the callback.  Does anyone have any sample code that uses an object's member function as the libusb_transfer_cb_fn callback?

I tried the code below but I keep getting a seg fault when I make the callback using the libusb_transfer structure.

I created the following functor:

class LibUsbTransferFunctor
{
  public:
    LibUsbTransferFunctor (USBStrategyST *pObject, void (USBStrategyST::*pMemFun)(struct libusb_transfer *transfer));
    void operator () (struct libusb_transfer *transfer);

//private:
      USBStrategyST *m_pObject;  // pointer to object
      void (USBStrategyST::*m_pMemFun)(struct libusb_transfer *transfer);   // pointer to member function
};

And initialize the functor with my object and&lt;/pre&gt;</description>
    <dc:creator>Doak, Roger (GE Healthcare</dc:creator>
    <dc:date>2013-04-18T16:17:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19849">
    <title>LIBUSB_ERROR_INVALID_PARAM on OSX when device is in unconfigured state</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19849</link>
    <description>&lt;pre&gt;Hello,

Today I noticed that I get a LIBUSB_ERROR_INVALID_PARAM error when 
trying to read the active configuration from an unconfigured device on 
OSX. The documentation on 
http://libusb.sourceforge.net/api-1.0.16/group__desc.html#ga425885149172b53b3975a07629c8dab3 
says that I should get a LIBUSB_ERROR_NOT_FOUND in this case.

Is this a bug in libusb (I'm using the current HEAD from the darwin 
repo) or is this a bug in the documentation? I guess the responsible 
code is this (in darwin_get_active_config_descriptor function, 
libusb/os/darwin_usb.c)

   if (0 == priv-&amp;gt;active_config)
     return LIBUSB_ERROR_INVALID_PARAM;

In the linux code the other error is returned:

       if (!priv-&amp;gt;config_descriptor)
                 return LIBUSB_ERROR_NOT_FOUND; /* device is unconfigured */

So I guess this is a bug in the darwin part of libusb?

&lt;/pre&gt;</description>
    <dc:creator>Klaus Reimer</dc:creator>
    <dc:date>2013-05-03T07:14:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19847">
    <title>need of sysfs and usbfs</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19847</link>
    <description>&lt;pre&gt;Is it necessary to mount sysfs or Usbfs manualy to work wit liusb???
or ma existing linux ubuntu with kernel 3.0.0.32 will do the things on its
own

thanks &amp;amp; Regards
Rohan
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with &amp;lt;2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2_______________________________________________
libusb-devel mailing list
libusb-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
&lt;/pre&gt;</description>
    <dc:creator>rohan vichare</dc:creator>
    <dc:date>2013-05-03T05:04:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19845">
    <title>libusb 1.0.16 release</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19845</link>
    <description>&lt;pre&gt;Hi Guys,

Do you guys have a timeline for a final release ? Would love to get new
features

Cheers!
------------------------------------------------------------------------------
Try New Relic Now &amp;amp; We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, &amp;amp; servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr_______________________________________________
libusb-devel mailing list
libusb-devel&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-devel
&lt;/pre&gt;</description>
    <dc:creator>kumar gokhare</dc:creator>
    <dc:date>2013-04-26T21:13:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19844">
    <title>1.0.16-rc8 uploaded</title>
    <link>http://comments.gmane.org/gmane.comp.lib.libusb.devel.general/19844</link>
    <description>&lt;pre&gt;I uploaded a new release candidate of 1.0.16 (rc8). This update contains fixes for several leaks found while inverstigating #170. Please note the new APIs added for 1.0.16 are not yet final. We may make some tweaks before the final release.

Changes:

core: release the context device list when the context is deleted.
This commit fixes a memory leak in the context list patch. Devices need
to be unref'd when the context is deleted. This can happen if either 1)
the backend init fails, or 2) the context is destroyed by libusb_exit().

https://github.com/hjelmn/libusb-darwin/commit/e63fb62acfe52aecfd12b2a2f87f9a79495b2a0b

darwin: fix memory leaks in the darwin backend.
There were two memory leaks in the darwin backend:
 - A CFString allocated by IORegistryEntryCreateCFProperty in darwin_get_interface()
   was not released.
 - The runloop is retained by darwin_open() but was not release by darwin_close().

https://github.com/hjelmn/libusb-darwin/commit/9f41a3a780fc14785da2f07d03c119b8024b2452

darwin: clean up ol&lt;/pre&gt;</description>
    <dc:creator>Nathan Hjelm</dc:creator>
    <dc:date>2013-04-26T19:40:27</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lib.libusb.devel.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lib.libusb.devel.general</link>
  </textinput>
</rdf:RDF>
