Subject: | patch for improvements to Device-USB |
Date: | Mon, 7 Aug 2006 16:09:15 +1000 |
To: | bug-Device-USB [...] rt.cpan.org |
From: | Mike McCauley <mikem [...] open.com.au> |
Hi There.
Thanks for Device-USB.
this isnt a bug. I have attached diffs for changes to USB.pm and Device.pm
that add the following features:
debug_mode now takes an integer 0, 1 or 2, consistent with the debug modes
offered by libusb. 2 is more verbose.
new function get_driver_np($interface) mirrors usb_get_driver_np.
Calls usb_get_driver_np on platforms where it is available, else returns 0.
new function detach_kernel_driver_np($interface) mirrors
usb_detach_kernel_driver_np. Calls usb_detach_kernel_np on platforms where it
is available, else returns 0. This is required to get control of USB devices
on some Linux distros.
Cheers.
--
Mike McCauley mikem@open.com.au
Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW
9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP etc on Unix, Windows, MacOS, NetWare etc.
Message body is not shown because sender requested not to inline it.