Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VirtualHere support #187

Closed
tresf opened this issue May 17, 2016 · 1 comment
Closed

VirtualHere support #187

tresf opened this issue May 17, 2016 · 1 comment
Labels

Comments

@tresf
Copy link

tresf commented May 17, 2016

Here's a proposal to patch libusb for VirtualHere support. It's over a year old but was wondering if this was something that could be incorporated?

I've quoted the email below (I'm not the author of this plugin, just inquiring about it).

http://libusb.6.n5.nabble.com/libusb-Patch-to-support-VirtualHere-td5714167.html

I write some usb-over-ip software called VirtualHere. Some people use libusb with virtualhere for remoting their usb connections. I made a small patch to basically add the "VHHUB" hub driver name which is the name VirutalHere uses to the list of names recognized by libusb. Could one of the developers add this patch to master. Thanks, Michael.

diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c
index f100759..a1787e7 100644
--- a/libusb/os/windows_usb.c
+++ b/libusb/os/windows_usb.c
@@ -2556,7 +2556,7 @@
    return LIBUSB_SUCCESS;
 }
 // These names must be uppercase
-const char* hub_driver_names[] = {"USBHUB", "USBHUB3", "USB3HUB", "NUSB3HUB", "RUSB3HUB", "FLXHCIH", "TIHUB3", "ETRONHUB3", "VIAHUB3", "ASMTHUB3", "IUSB3HUB", "VUSB3HUB", "AMDHUB30"};
+const char* hub_driver_names[] = {"USBHUB", "USBHUB3", "USB3HUB", "NUSB3HUB", "RUSB3HUB", "FLXHCIH", "TIHUB3", "ETRONHUB3", "VIAHUB3", "ASMTHUB3", "IUSB3HUB", "VUSB3HUB", "AMDHUB30", "VHHUB"};
 const char* composite_driver_names[] = {"USBCCGP"};
 const char* winusbx_driver_names[] = WINUSBX_DRV_NAMES;
 const char* hid_driver_names[] = {"HIDUSB", "MOUHID", "KBDHID"};
@tresf
Copy link
Author

tresf commented May 17, 2016

Never-mind, seems to already be upstream. Will ping author instead.

static const char *hub_driver_names[] = {"USBHUB", "USBHUB3", "USB3HUB", "NUSB3HUB", "RUSB3HUB", "FLXHCIH", "TIHUB3", "ETRONHUB3", "VIAHUB3", "ASMTHUB3", "IUSB3HUB", "VUSB3HUB", "AMDHUB30", "VHHUB"};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants