Skip to content

Add libusb_wrap_sys_device() #386

Open

Description

@mcuee

This is useful for Linux and Android. It is also discussed in #285.

https://libusb.sourceforge.io/api-1.0/group__libusb__dev.html#ga98f783e115ceff4eaf88a60e6439563c
int libusb_wrap_sys_device (libusb_context *ctx, intptr_t sys_dev, libusb_device_handle **dev_handle)
Must call libusb_set_option(NULL, LIBUSB_OPTION_WEAK_AUTHORITY) or before libusb_init if don't have authority to access the usb device directly.

Activity

  1. mcuee commented on Sep 13, 2021

    @mcuee
    MemberAuthor

    Discussion in python-libusb1: vpelletier/python-libusb1#37 (comment)

  2. mcuee commented on Sep 13, 2021

    @mcuee
    MemberAuthor

    BTW, there is the New NO_DEVICE_DISCOVERY option to replace WEAK_AUTHORITY option.
    libusb/libusb@5c89594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions