VirtualBox

Changeset 60089 in vbox for trunk/src/VBox/Main/testcase


Ignore:
Timestamp:
Mar 18, 2016 10:51:02 AM (9 years ago)
Author:
vboxsync
Message:

Main,VBoxManage: Add API to IHost for adding and removing USB device sources in addition to the default host one (only USB/IP backend supported so far which will be used in the future for automatic USB testing). Add support for it in VBoxManage

Location:
trunk/src/VBox/Main/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/Makefile.kmk

    r60068 r60089  
    208208tstUSBProxyLinux_SOURCES   = \
    209209        tstUSBProxyLinux.cpp \
    210         ../src-server/linux/USBProxyBackendLinux.cpp \
    211210        ../src-server/linux/USBGetDevices.cpp
    212211tstUSBProxyLinux_INCS      = \
  • trunk/src/VBox/Main/testcase/tstUSBProxyLinux.cpp

    r60068 r60089  
    2121*********************************************************************************************************************************/
    2222
    23 #include "USBProxyBackend.h"
    2423#include "USBGetDevices.h"
    2524
     
    3130
    3231/*** BEGIN STUBS ***/
    33 
    34 USBProxyBackend::USBProxyBackend(USBProxyService*) {}
    35 USBProxyBackend::~USBProxyBackend() {}
    36 int USBProxyBackend::init() { return VINF_SUCCESS; }
    37 int USBProxyBackend::start() { return VINF_SUCCESS; }
    38 int USBProxyBackend::stop() { return VINF_SUCCESS; }
    39 RWLockHandle *USBProxyBackend::lockHandle() const { return NULL; }
    40 void *USBProxyBackend::insertFilter(USBFILTER const*) { return NULL; }
    41 void USBProxyBackend::removeFilter(void*) {}
    42 int USBProxyBackend::captureDevice(HostUSBDevice*) { return VINF_SUCCESS; }
    43 void USBProxyBackend::captureDeviceCompleted(HostUSBDevice*, bool) {}
    44 void USBProxyBackend::detachingDevice(HostUSBDevice*) {}
    45 int USBProxyBackend::releaseDevice(HostUSBDevice*) { return VINF_SUCCESS; }
    46 void USBProxyBackend::releaseDeviceCompleted(HostUSBDevice*, bool) {}
    47 void USBProxyBackend::serviceThreadInit() {}
    48 void USBProxyBackend::serviceThreadTerm() {}
    49 int USBProxyBackend::wait(unsigned int) { return VINF_SUCCESS; }
    50 int USBProxyBackend::interruptWait() { return VINF_SUCCESS; }
    51 PUSBDEVICE USBProxyBackend::getDevices() { return NULL; }
    52 void USBProxyBackend::deviceAdded(ComObjPtr<HostUSBDevice> &aDevice, SessionMachinesList &llOpenedMachines, PUSBDEVICE aUSBDevice) {}
    53 void USBProxyBackend::deviceRemoved(ComObjPtr<HostUSBDevice> &aDevice) {}
    54 void USBProxyBackend::deviceChanged(ComObjPtr<HostUSBDevice> &aDevice, SessionMachinesList*, SessionMachine*) {}
    55 bool USBProxyBackend::updateDeviceState(HostUSBDevice*, USBDEVICE*, bool*, SessionMachine**) { return true; }
    56 bool USBProxyBackend::updateDeviceStateFake(HostUSBDevice*, USBDEVICE*, bool*, SessionMachine**) { return true; }
    57 bool USBProxyBackend::isActive() { return true; }
    58 
    59 VBoxMainHotplugWaiter::VBoxMainHotplugWaiter(char const*) {}
    60 
    61 com::Utf8Str HostUSBDevice::i_getName()
    62 {
    63     return Utf8Str();
    64 }
    65 
    66 void SysFreeString(BSTR bstr)
    67 {
    68     Assert(0);
    69 }
    7032
    7133static struct
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