Menu

#15 libusb_dyn.c is missing stubs for several of the libusb-win32 functions

Unstable_(example)
wont-fix
None
5
2021-08-16
2012-05-20
No

libusb_dyn.c is missing stubs for several of the libusb-win32 functions:

  • usb_touch_inf_file_np
  • usb_install_needs_restart_np
  • usb_install_npW
  • usb_install_npA
  • usb_reap_async_nocancel
  • usb_cancel_async

(It's also missing the various _rundll stubs, but I doubt there's any point in including those.)

The first four are related to driver installation, and any program that uses those will probably want to link to libusb0.dll directly. But usb_reap_async_nocancel and usb_cancel_async should at least be included.

(I'm trying to compile a program (tilem) that links to a library (libticables2) that links to libusb (and uses those two functions), but my program doesn't currently make use of the USB features of libticables2, so I would like to avoid the libusb0.dll dependency if possible.)

Patch is attached; I have not tested it beyond making sure it compiles, but it's pretty straightforward.

Discussion

  • Benjamin Moody

    Benjamin Moody - 2012-05-20
     
  • Travis Robinson

    Travis Robinson - 2012-06-01

    These two should be in there, If not we need to add them. ;)
    - usb_reap_async_nocancel
    - usb_cancel_async

    The others have been deprecated. They are inadequate because of UAC and 64bit.

     
  • Xiaofan Chen

    Xiaofan Chen - 2012-07-22

    --- old
    +++ new
    @@ -0,0 +1,16 @@
    +libusb_dyn.c is missing stubs for several of the libusb-win32 functions:
    +
    + - usb_touch_inf_file_np
    + - usb_install_needs_restart_np
    + - usb_install_npW
    + - usb_install_npA
    + - usb_reap_async_nocancel
    + - usb_cancel_async
    +
    +(It's also missing the various _rundll stubs, but I doubt there's any point in including those.)
    +
    +The first four are related to driver installation, and any program that uses those will probably want to link to libusb0.dll directly. But usb_reap_async_nocancel and usb_cancel_async should at least be included.
    +
    +(I'm trying to compile a program (tilem) that links to a library (libticables2) that links to libusb (and uses those two functions), but my program doesn't currently make use of the USB features of libticables2, so I would like to avoid the libusb0.dll dependency if possible.)
    +
    +Patch is attached; I have not tested it beyond making sure it compiles, but it's pretty straightforward.

    ~~~~

     

    Last edit: Xiaofan Chen 2018-06-23
  • Benjamin Moody

    Benjamin Moody - 2012-08-09

    The attached patch is the same as the above, but only includes usb_cancel_async and usb_reap_async_nocancel.

     
  • Xiaofan Chen

    Xiaofan Chen - 2021-08-16
    • status: pending --> wont-fix
     

Log in to post a comment.