VirtualBox

Changeset 37623 in vbox for trunk/src/VBox/RDP/client


Ignore:
Timestamp:
Jun 24, 2011 7:58:37 AM (13 years ago)
Author:
vboxsync
Message:

RDP/client/vrdp: use USBProxyLinuxChooseMethod to select the USB access method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/RDP/client/vrdp/rdpusb.c

    r37224 r37623  
    888888rdpusb_init(void)
    889889{
    890     /** @todo re-use the proxy service code */
    891         if (USBProxyLinuxCheckDeviceRoot("/dev/vboxusb", true))
     890    bool fUseUsbfs;
     891    if (RT_SUCCESS(USBProxyLinuxChooseMethod(&fUseUsbfs, &g_pcszDevicesRoot)))
    892892        {
    893             g_fUseSysfs       = true;
    894             g_pcszDevicesRoot = "/dev/vboxusb";
     893            g_fUseSysfs = !fUseUsbfs;
     894            rdpusb_channel =
     895                    channel_register("vrdpusb", CHANNEL_OPTION_INITIALIZED | CHANNEL_OPTION_ENCRYPT_RDP,
     896                                     rdpusb_process);
     897            return (rdpusb_channel != NULL);
    895898        }
    896         else
    897         {
    898             g_fUseSysfs       = false;
    899             g_pcszDevicesRoot = "/proc/bus/usb";
    900         }
    901         rdpusb_channel =
    902                 channel_register("vrdpusb", CHANNEL_OPTION_INITIALIZED | CHANNEL_OPTION_ENCRYPT_RDP,
    903                                  rdpusb_process);
    904         return (rdpusb_channel != NULL);
     899        return false;
    905900}
    906901
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette