libusb_dyn.c is missing stubs for several of the libusb-win32 functions:
(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.
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.
--- 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
The attached patch is the same as the above, but only includes usb_cancel_async and usb_reap_async_nocancel.