2013/4/23 Hans de Goede <hdego...@redhat.com>:
> The comment refers to the non-existing libusb_device_ref and
> libusb_device_unref functions, this should be libusb_ref_device resp.
> libusb_unref_device.
>
> Signed-off-by: Hans de Goede <hdego...@redhat.com>
> ---
>  libusb/libusb.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libusb/libusb.h b/libusb/libusb.h
> index 3f7f71d..a7b6570 100644
> --- a/libusb/libusb.h
> +++ b/libusb/libusb.h
> @@ -733,8 +733,8 @@ typedef struct libusb_context libusb_context;
>   * Certain operations can be performed on a device, but in order to do any
>   * I/O you will have to first obtain a device handle using libusb_open().
>   *
> - * Devices are reference counted with libusb_device_ref() and
> - * libusb_device_unref(), and are freed when the reference count reaches 0.
> + * Devices are reference counted with libusb_ref_device() and
> + * libusb_unref_device(), and are freed when the reference count reaches 0.
>   * New devices presented by libusb_get_device_list() have a reference count 
> of
>   * 1, and libusb_free_device_list() can optionally decrease the reference 
> count
>   * on all devices in the list. libusb_open() adds another reference which is
> --
> 1.8.2

Pushed.
Thanks

The API [1] should be updated but I don't yet know how to do that.

[1] 
http://libusbx.sourceforge.net/api-1.0/group__dev.html#ga77eedd00d01eb7569b880e861a971c2b

--
 Dr. Ludovic Rousseau

------------------------------------------------------------------------------
Try New Relic Now & 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, & 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
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to